]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add comments about why we wait in files_versions' cypress tests
authorLouis Chemineau <louis@chmn.me>
Wed, 22 Mar 2023 15:40:46 +0000 (16:40 +0100)
committerLouis Chemineau <louis@chmn.me>
Wed, 5 Apr 2023 09:51:45 +0000 (11:51 +0200)
Signed-off-by: Louis Chemineau <louis@chmn.me>
cypress/e2e/files_versions/filesVersionsUtils.ts

index e22675384712521a12b03147a2239cc3f1a47cfd..4b8006b0471c550e4c1824b4f009c24ac2cfa140 100644 (file)
@@ -24,8 +24,12 @@ import path from "path"
 
 export function uploadThreeVersions(user) {
        cy.uploadContent(user, new Blob(['v1'], { type: 'text/plain' }), 'text/plain', '/test.txt')
+       // A new version will not be created if the changes occur
+       // within less than one second of each other.
+       // eslint-disable-next-line cypress/no-unnecessary-waiting
        cy.wait(1500)
        cy.uploadContent(user, new Blob(['v2'], { type: 'text/plain' }), 'text/plain', '/test.txt')
+       // eslint-disable-next-line cypress/no-unnecessary-waiting
        cy.wait(1500)
        cy.uploadContent(user, new Blob(['v3'], { type: 'text/plain' }), 'text/plain', '/test.txt')
        cy.login(user)