From: Louis Chemineau Date: Wed, 22 Mar 2023 15:40:46 +0000 (+0100) Subject: Add comments about why we wait in files_versions' cypress tests X-Git-Tag: v26.0.1rc1~20^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1ae27f5b0a3883b69c586f88b1c6eb56f0578e2;p=nextcloud-server.git Add comments about why we wait in files_versions' cypress tests Signed-off-by: Louis Chemineau --- diff --git a/cypress/e2e/files_versions/filesVersionsUtils.ts b/cypress/e2e/files_versions/filesVersionsUtils.ts index e2267538471..4b8006b0471 100644 --- a/cypress/e2e/files_versions/filesVersionsUtils.ts +++ b/cypress/e2e/files_versions/filesVersionsUtils.ts @@ -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)