Fixes a race condition which could cause flaky e2e tests.
Attach a file by drag & drop or click to upload