diff --git a/website/package.json b/website/package.json index dbfaa617e..636c124a2 100644 --- a/website/package.json +++ b/website/package.json @@ -16,6 +16,7 @@ "format-fast": "prettier --ignore-path \"../.gitignore\" --write \"./**/*.{ts,tsx,json,astro,cjs,mjs}\"", "test": "vitest", "e2e": "npx playwright test", + "e2e:ui": "npx playwright test --ui --headed", "e2e:headed": "npx playwright test --headed" }, "dependencies": { diff --git a/website/src/components/Submission/DataUploadForm.tsx b/website/src/components/Submission/DataUploadForm.tsx index 7f14daced..ddc9e3310 100644 --- a/website/src/components/Submission/DataUploadForm.tsx +++ b/website/src/components/Submission/DataUploadForm.tsx @@ -143,6 +143,12 @@ const UploadComponent = ({ }) => { const [myFile, rawSetMyFile] = useState(null); const [isDragOver, setIsDragOver] = useState(false); + const [isClient, setIsClient] = useState(false); + + useEffect(() => { + setIsClient(true); + }, []); + const setMyFile = useCallback( (file: File | null) => { setFile(file); @@ -203,23 +209,23 @@ const UploadComponent = ({