Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Force click on share action
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Mar 11, 2021
commit c9c1a56b924fc0a0041fa145fe78dbae299da5fa
9 changes: 6 additions & 3 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 All @@ -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')
Expand Down