mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(cypress): Handle password confirmation dialog at the right time
According to failed CI it shows up earlier than expected when deleting a user Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
b42a13f5df
commit
baa79a9c40
1 changed files with 3 additions and 2 deletions
|
|
@ -115,12 +115,13 @@ describe('Settings: Create and delete accounts', function() {
|
|||
|
||||
// The "Delete account" action in the actions menu is shown and clicked
|
||||
cy.get('.action-item__popper .action').contains('Delete account').should('exist').click({ force: true })
|
||||
// And confirmation dialog accepted
|
||||
cy.get('.nc-generic-dialog button').contains(`Delete ${testUser.userId}`).click({ force: true })
|
||||
|
||||
// Make sure no confirmation modal is shown
|
||||
handlePasswordConfirmation(admin.password)
|
||||
|
||||
// And confirmation dialog accepted
|
||||
cy.get('.nc-generic-dialog button').contains(`Delete ${testUser.userId}`).click({ force: true })
|
||||
|
||||
// deleted clicked the user is not shown anymore
|
||||
getUserListRow(testUser.userId).should('not.exist')
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue