Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-17 10:31:29 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-11-17 11:34:33 +0300
commit1525c0e79f40edd027cedde9bf13ea617084a34e (patch)
treeb695514fb2319fab96a5ea4fffa3376de8439a00 /cypress
parentf59886eb12e312a390bd84cb3d6bc6347bf9401c (diff)
Wait for file list
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/integration/share.spec.js22
1 files changed, 13 insertions, 9 deletions
diff --git a/cypress/integration/share.spec.js b/cypress/integration/share.spec.js
index 1d1fdfe0d..cf88eb42f 100644
--- a/cypress/integration/share.spec.js
+++ b/cypress/integration/share.spec.js
@@ -31,21 +31,25 @@ describe('Open test.md in viewer', function() {
cy.nextcloudCreateUser(randUser, 'password')
cy.login(randUser, 'password')
- // Upload test files
- cy.uploadFile('test.md', 'text/markdown')
- cy.uploadFile('test.md', 'text/markdown', 'test2.md')
- cy.createFolder('folder')
- cy.uploadFile('test.md', 'text/markdown', 'folder/test.md')
- cy.visit('/apps/files')
- cy.get('#fileList tr[data-file="test.md"]', {timeout: 10000})
- .should('contain', 'test.md')
-
// FIXME: files app is thowing the following error for some reason
// Uncaught TypeError: Cannot read property 'protocol' of undefined
// Same for appswebroots setting in tests
cy.on('uncaught:exception', (err, runnable) => {
return false
})
+
+ cy.get('#fileList tr[data-file="welcome.txt"]', {timeout: 10000})
+ .should('contain', 'welcome.txt')
+
+ // Upload test files
+ cy.createFolder('folder')
+ cy.uploadFile('test.md', 'text/markdown', 'folder/test.md')
+ cy.uploadFile('test.md', 'text/markdown', 'test2.md')
+ cy.uploadFile('test.md', 'text/markdown')
+ cy.wait(1000)
+ cy.visit('/apps/files')
+ cy.get('#fileList tr[data-file="test.md"]', {timeout: 10000})
+ .should('contain', 'test.md')
})
after(function () {
cy.visit('/apps/files')