mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(cypress): User groups test
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
01d5979ed2
commit
b3d426c510
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue