diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-04-08 09:21:53 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-04-08 09:21:53 +0200 |
commit | baa79a9c40cff794446c68c1548a20dd6477501d (patch) | |
tree | d3f04e954ceda30de6631e9e184e37b54751ce42 | |
parent | b42a13f5df115c0497dea7e70dbd0ae0a9f57b8c (diff) | |
download | nextcloud-server-baa79a9c40cff794446c68c1548a20dd6477501d.tar.gz nextcloud-server-baa79a9c40cff794446c68c1548a20dd6477501d.zip |
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>
-rw-r--r-- | cypress/e2e/settings/users.cy.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cypress/e2e/settings/users.cy.ts b/cypress/e2e/settings/users.cy.ts index 417191b26f8..5b8726e92ca 100644 --- a/cypress/e2e/settings/users.cy.ts +++ b/cypress/e2e/settings/users.cy.ts @@ -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') }) |