Skip to content

Commit

Permalink
fix(cy): inputs based on label text
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Dec 29, 2023
1 parent 767ada5 commit 24ec72a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/collective-settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('Collective settings', function() {
it('Allows to change editing permissions', function() {
cy.openCollectiveMenu('Change me')
cy.clickMenuButton('Settings')
cy.get('div.permissions-input-edit > :first-child > .checkbox-radio-switch__label')
cy.get('.permissions-input-edit').contains('Admins only')
.click()
cy.get('div.toast-success').should('contain', 'Editing permissions updated')
})
Expand All @@ -90,7 +90,7 @@ describe('Collective settings', function() {
it('Allows to change sharing permissions', function() {
cy.openCollectiveMenu('Change me')
cy.clickMenuButton('Settings')
cy.get('div.permissions-input-share > :first-child > .checkbox-radio-switch__label')
cy.get('.permissions-input-share').contains('Admins only')
.click()
cy.get('div.toast-success').should('contain', 'Sharing permissions updated')
})
Expand All @@ -103,7 +103,7 @@ describe('Collective settings', function() {
cy.get('a.navigation-list__link')
.contains('Page settings')
.click()
cy.get('div.edit-mode > :last-child > .checkbox-radio-switch__label')
cy.get('.edit-mode').contains('Edit')
.click()
cy.get('div.toast-success').should('contain', 'Default page mode updated')
})
Expand Down

0 comments on commit 24ec72a

Please sign in to comment.