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-09-07 13:18:37 +0300
committerJulius Härtl <jus@bitgrid.net>2020-11-17 11:01:10 +0300
commitbaa900546cabc21f04b07f63ce9264fd934e81be (patch)
tree4035e3fcdc27c0db0d7190671657b3a0020056ac /cypress
parent35c26dd5e49596040841267737fdffdf3d75576f (diff)
Fix sidebar checkbox selector
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/integration/share.spec.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/cypress/integration/share.spec.js b/cypress/integration/share.spec.js
index 0823e1f76..1d1fdfe0d 100644
--- a/cypress/integration/share.spec.js
+++ b/cypress/integration/share.spec.js
@@ -83,8 +83,9 @@ describe('Open test.md in viewer', function() {
cy.get('#app-sidebar-vue a#sharing').trigger('click')
cy.get('#app-sidebar-vue button.new-share-link').trigger('click')
cy.get('#app-sidebar-vue .sharing-link-list .action-item__menutoggle').trigger('click')
- cy.get('#app-sidebar-vue .sharing-link-list .action-item__menu input[type=checkbox]').first().check({ force: true })
- cy.get('#app-sidebar-vue .sharing-link-list .action-item__menu input[type=checkbox]', { timeout: 4000 }).first().should('be.checked')
+ const checkboxAllowEditing = '.popover.open input[type=checkbox]'
+ cy.get(checkboxAllowEditing).first().check({ force: true })
+ cy.get(checkboxAllowEditing, { timeout: 4000 }).first().should('be.checked')
cy.get('#app-sidebar-vue a.sharing-entry__copy')
.should('have.attr', 'href').and('include', '/s/')
.then((href) => {