Merge pull request #40894 from nextcloud/fix/cypress-groups

This commit is contained in:
Simon L 2023-10-13 10:37:18 +02:00 committed by GitHub
commit 925df86466
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}