diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-07-07 17:22:15 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-07-12 17:30:11 -0700 |
commit | ce99dd9eec0a680a8b25beb9ab77a809e017edf5 (patch) | |
tree | 03e8bc5062e60df38d9b5a33a083139eeeb58ef4 /cypress | |
parent | b65eb0c03d016fa86a931a1457b8a9ba464a8451 (diff) | |
download | nextcloud-server-ce99dd9eec0a680a8b25beb9ab77a809e017edf5.tar.gz nextcloud-server-ce99dd9eec0a680a8b25beb9ab77a809e017edf5.zip |
fix(cypress): users
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/settings/users.cy.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cypress/e2e/settings/users.cy.ts b/cypress/e2e/settings/users.cy.ts index bc5211e291f..06c22a5dd5c 100644 --- a/cypress/e2e/settings/users.cy.ts +++ b/cypress/e2e/settings/users.cy.ts @@ -42,11 +42,11 @@ describe('Settings: Create and delete users', function() { cy.visit('/settings/users') // see that the user is in the list - cy.get(`.user-list-grid .row[data-id="${jdoe.userId}"]`).within(() => { + cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').within(() => { // see that the list of users contains the user jdoe cy.contains(jdoe.userId).should('exist') // open the actions menu for the user - cy.get('.userActions button.action-item__menutoggle').click() + cy.get('td.row__cell--actions button.action-item__menutoggle').click() }) // The "Delete user" action in the actions menu is shown and clicked @@ -54,6 +54,6 @@ describe('Settings: Create and delete users', function() { // And confirmation dialog accepted cy.get('.oc-dialog button').contains(`Delete ${jdoe.userId}`).click() // deleted clicked the user is not shown anymore - cy.get(`.user-list-grid .row[data-id="${jdoe.userId}"]`).should('not.exist') + cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').should('not.be.visible') }) }) |