diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-07 13:18:37 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-17 11:01:10 +0300 |
commit | baa900546cabc21f04b07f63ce9264fd934e81be (patch) | |
tree | 4035e3fcdc27c0db0d7190671657b3a0020056ac /cypress | |
parent | 35c26dd5e49596040841267737fdffdf3d75576f (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.js | 5 |
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) => { |