Skip to content

Commit

Permalink
fixup! Fix(web-react): FileUploaderInput className #DS-1508
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Oct 21, 2024
1 parent 40a6ee2 commit 12c2bf8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('FileUploaderInput', () => {
validationTextPropsTest(FileUploaderInput, '.FileUploaderInput__validationText');

it('should have drag-and-drop listeners in CSR when draggable is supported', () => {
render(<FileUploaderInput id="test-uploader" name="test-uploader" />);
render(<FileUploaderInput id="test-uploader" name="test-uploader" label="upload" />);

const dropZone = screen.getByLabelText(/upload/i).parentElement;

Expand All @@ -26,7 +26,7 @@ describe('FileUploaderInput', () => {
});

it('should not have drag-and-drop listeners in SSR', () => {
const ui = <FileUploaderInput id="test-uploader" name="test-uploader" />;
const ui = <FileUploaderInput id="test-uploader" name="test-uploader" label="upload" />;
const container = document.createElement('div');
document.body.appendChild(container);
container.innerHTML = ReactDOMServer.renderToString(ui);
Expand Down

0 comments on commit 12c2bf8

Please sign in to comment.