Skip to content

Commit

Permalink
Force click on share action
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Mar 11, 2021
1 parent 3a007a0 commit e4f5760
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/integration/share.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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')
Expand Down

0 comments on commit e4f5760

Please sign in to comment.