mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 20:40:39 -05:00
Add comments about why we wait in files_versions' cypress tests
Signed-off-by: Louis Chemineau <louis@chmn.me>
This commit is contained in:
parent
c79f774dd6
commit
c0ff8789c3
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue