Skip to content

Commit

Permalink
fixup! Fix(web-react): Fix e2e test for FileUploader
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Oct 24, 2024
1 parent ef80e85 commit ec9b392
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ const FileUploaderDraggingNotAvailable = () => {
);

useEffect(() => {
const element = document
.getElementById('file-uploader-dragging-not-available')
?.querySelector('.has-drag-and-drop');
element?.classList.remove('has-drag-and-drop');
const timer = setTimeout(() => {
const element = document
.getElementById('file-uploader-dragging-not-available')
?.querySelector('.has-drag-and-drop');
element?.classList.remove('has-drag-and-drop');
}, 0);

return () => clearTimeout(timer);
}, []);

// ⚠️ VISUAL EXAMPLE ONLY, DO NOT COPY-PASTE
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ec9b392

Please sign in to comment.