Create e2e test for sending files of all sizes
We suspect unreliability when sending large files, so let's create an e2e test for this.
The test should:
- Send multiple large files between two clients
- Send messages at some intervals and confirm that these are received within a reasonable amount of time (5 seconds, e.g.)
UPDATE: there are many issues sending files of all sizes. We need e2e tests for files of all sizes, single files, multiple files, in many combinations.
We should have e2e tests on mobile for this too.
There is an easy way to upload file in Selenium (.sendKeys(
One can use a workaround in test - copy file to clipboard and paste it (ctrl+v) to our input.
That works for me!
Is there a reason we can't use an input element? Mostly just curious but it would be nice to be able to test all the different ways of sending a file (file select as well as copy paste)
This issue is still relevant; however, while re-writing downloads that @Isla handled, she covered a few tests:
- uploading an image and checking if another user can see it,
- uploading a small file and checking if another user successfully downloads it automatically,
- uploading a larger file and starting a download but canceling it immediately.