diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-10-12 15:39:42 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-10-12 15:39:42 -0700 |
commit | b3d426c5101d6a87711f3521bf1eaab6edb71cbe (patch) | |
tree | de7d8a86cce3785f34f79b7e3ec34a99825a2fe2 /cypress/e2e/settings | |
parent | 01d5979ed26b7f573e5bc09919dc3b4df1278731 (diff) | |
download | nextcloud-server-b3d426c5101d6a87711f3521bf1eaab6edb71cbe.tar.gz nextcloud-server-b3d426c5101d6a87711f3521bf1eaab6edb71cbe.zip |
fix(cypress): User groups test
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress/e2e/settings')
-rw-r--r-- | cypress/e2e/settings/users_groups.cy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cypress/e2e/settings/users_groups.cy.ts b/cypress/e2e/settings/users_groups.cy.ts index 1a5e8560590..f1e698175ee 100644 --- a/cypress/e2e/settings/users_groups.cy.ts +++ b/cypress/e2e/settings/users_groups.cy.ts @@ -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() } |