diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-17 13:11:44 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-17 13:11:44 +0300 |
commit | d47517230913636ff1380172796a6f172ccfe636 (patch) | |
tree | 92009a8d7afbe5506700dcc41f8af8fea41b5fe4 /cypress | |
parent | 5fa0fd3055967c63a0183f5feaf9c0e8f0aaeace (diff) |
Attempt to fix flaky cypress tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/integration/share.spec.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cypress/integration/share.spec.js b/cypress/integration/share.spec.js index e0b937511..7747f3822 100644 --- a/cypress/integration/share.spec.js +++ b/cypress/integration/share.spec.js @@ -80,7 +80,8 @@ describe('Open test.md in viewer', function() { it('Shares the file as a public link with write permissions', function () { cy.visit('/apps/files') - cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000}).trigger('click') + cy.get('#fileList tr[data-file="test2.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') @@ -107,7 +108,8 @@ describe('Open test.md in viewer', function() { it('Opens the editor as guest', function () { cy.visit('/apps/files') - cy.get('#fileList tr[data-file="test2.md"] a.action-share', {timeout: 10000}).trigger('click') + cy.get('#fileList tr[data-file="test2.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') @@ -131,7 +133,8 @@ 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.get('#fileList tr[data-file="folder"] a.action-share', {timeout: 10000}).trigger('click') + cy.get('#fileList tr[data-file="folder"] 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') |