Skip to content

Commit

Permalink
Merge pull request #40894 from nextcloud/fix/cypress-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen authored Oct 13, 2023
2 parents f103979 + b3d426c commit 925df86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/settings/users_groups.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ describe('Settings: Create and delete groups', () => {
expect(error.name).to.equal('AssertionError')
expect(error).to.have.property('node', '.modal-container')
})
// Make sure no confirmation modal is shown
// Make sure no confirmation modal is shown on top of the Remove group modal
cy.get('body').find('.modal-container').then(($modals) => {
if ($modals.length > 0) {
if ($modals.length > 1) {
cy.wrap($modals.first()).find('input[type="password"]').type(admin.password)
cy.wrap($modals.first()).find('button').contains('Confirm').click()
}
Expand Down

0 comments on commit 925df86

Please sign in to comment.