diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-17 10:34:24 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-17 11:30:29 +0300 |
commit | 9ebd8eacedc73e43b3a178bdc748aa513afe7865 (patch) | |
tree | 4039ed55b774dda54117ca82caaacc6cf6ae147f /cypress | |
parent | 13d9bce480ea44a3547c1376effb6186dc71dfac (diff) |
Remove extra wait
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/integration/share.spec.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cypress/integration/share.spec.js b/cypress/integration/share.spec.js index cf88eb42f..e0b937511 100644 --- a/cypress/integration/share.spec.js +++ b/cypress/integration/share.spec.js @@ -40,7 +40,7 @@ describe('Open test.md in viewer', function() { 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') @@ -58,8 +58,8 @@ describe('Open test.md in viewer', function() { it('Shares the file as a public read only link', function () { cy.visit('/apps/files', { timeout: 10000 }) - cy.wait(1000) - cy.get('#fileList tr[data-file="test.md"] a.action-share', {timeout: 10000}).trigger('click') + cy.get('#fileList tr[data-file="test.md"] a.action-share', { timeout: 10000 }) + .click({force: true}) cy.get('#app-sidebar-vue') .should('be.visible') cy.get('#app-sidebar-vue a#sharing').trigger('click') @@ -80,7 +80,6 @@ describe('Open test.md in viewer', function() { it('Shares the file as a public link with write permissions', function () { cy.visit('/apps/files') - cy.wait(1000) cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000}).trigger('click') cy.get('#app-sidebar-vue') .should('be.visible') @@ -96,7 +95,6 @@ describe('Open test.md in viewer', function() { cy.visit(href) cy.window().then(win => { win.OC.appswebroots['files_texteditor'] = true - cy.wait(1000) cy.get('#editor', {timeout: 10000}).should('be.visible') cy.get('#editor .ProseMirror').should('contain', 'Hello world') cy.get('#editor .ProseMirror h2').should('contain', 'Hello world') @@ -109,7 +107,6 @@ describe('Open test.md in viewer', function() { it('Opens the editor as guest', function () { cy.visit('/apps/files') - cy.wait(1000) cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000}).trigger('click') cy.get('#app-sidebar-vue') .should('be.visible') @@ -134,7 +131,6 @@ describe('Open test.md in viewer', function() { it('Shares a folder as a public read only link', function () { cy.visit('/apps/files', { timeout: 10000 }) - cy.wait(1000) cy.get('#fileList tr[data-file="folder"] a.action-share', {timeout: 10000}).trigger('click') cy.get('#app-sidebar-vue') .should('be.visible') |