diff options
author | Louis Chemineau <louis@chmn.me> | 2023-03-22 16:40:46 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2023-03-30 10:09:13 +0200 |
commit | c0ff8789c36df4d6fc464e663b210cedd0dbc487 (patch) | |
tree | 6617792a84155c3d14c5238631b427ff94f127a6 /cypress | |
parent | c79f774dd680eb0eaefe334e7149cddeb82b58e2 (diff) | |
download | nextcloud-server-c0ff8789c36df4d6fc464e663b210cedd0dbc487.tar.gz nextcloud-server-c0ff8789c36df4d6fc464e663b210cedd0dbc487.zip |
Add comments about why we wait in files_versions' cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/files_versions/filesVersionsUtils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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) |