-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only] add test download previos version of file. Add check download file #5661
Conversation
ScharfViktor
commented
Aug 11, 2021
- A test for this error 2261 is written
- added a check that the file was downloaded successfully
Results for oC10SharingPublicManagement https://drone.owncloud.com/owncloud/web/18194/34/1
|
Results for oC10SharingExternalRoot https://drone.owncloud.com/owncloud/web/18194/40/1
|
Results for oC10XGAPortrait2 https://drone.owncloud.com/owncloud/web/18194/43/1 |
Note: there are API test scenarios for this issue that are failing in oCIS CI:
So the bug is in the server. But I guess it is useful to have a web scenario for this, because when the server bug is fixed, and the API scenarios pass, we then want to know that web UI can actually display and download versions. |
d02e8e5
to
33130b8
Compare
Results for oC10SharingInternalGroupsSharingIndicator https://drone.owncloud.com/owncloud/web/18236/24/1
|
Results for oCISFiles1 https://drone.owncloud.com/owncloud/web/18236/52/1 |
as discussed, if the tests run in ci the downloaded files (in selenium) are not available on the test runner. The best would be to mount a download dir into the selenium image and then Similar how we do it for the files to upload in drone |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@ScharfViktor I fear this one needs a rebase, can we help you with finalizing this PR? |
@pascalwengerter yeah, that would be great. I could not figure out how to drone add volume like in docker-compose |
@ScharfViktor this needs a big rebase. Can you ping me early next week and we do it together? Or do you want to add it to the smoke tests instead and close (=supersede) this PR? |
See core PR owncloud/core#39442 That might give some clues for the test infrastructure setup. |
@ScharfViktor can you maybe shift this test to Playwright? "Real" downloads there work already out of the box so you'd "only" have to figure out how to access the downloaded file's content |
Plus it'd work locally as well the same it does in CI, without mounting volumes or the likes |
I agree, it's a good idea)) |
@phil-davis thanks for the tip |
086e059
to
09ac427
Compare
Now smoke tests have a good file download check: So I did not duplicate the file download check in the "acceptance" tests. I moved the check "download previos version" to another task #6038, so as not to bother with the "rebase" |