diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-10-04 17:54:42 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-10-05 16:52:37 -0700 |
commit | 091b3e0586586a4d5479cda9212deda48d633501 (patch) | |
tree | 1de8fc1c631b20b91759a84f0e1c97a8902fc1e5 /cypress/e2e | |
parent | 95a7925dc9b373c0a0a1485a8e777129aceacfb4 (diff) | |
download | nextcloud-server-091b3e0586586a4d5479cda9212deda48d633501.tar.gz nextcloud-server-091b3e0586586a4d5479cda9212deda48d633501.zip |
fix(cypress): User table create/delete tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress/e2e')
-rw-r--r-- | cypress/e2e/settings/users.cy.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cypress/e2e/settings/users.cy.ts b/cypress/e2e/settings/users.cy.ts index 9bc0c8ad657..1f29ee1db41 100644 --- a/cypress/e2e/settings/users.cy.ts +++ b/cypress/e2e/settings/users.cy.ts @@ -81,7 +81,7 @@ describe('Settings: Create and delete users', function() { }) // see that the created user is in the list - cy.get(`tbody.user-list__body tr td[data-test="john"]`).parents('tr').within(() => { + cy.get('tbody.user-list__body tr[data-test="john"]').within(() => { // see that the list of users contains the user john cy.contains('john').should('exist') }) @@ -126,7 +126,7 @@ describe('Settings: Create and delete users', function() { }) // see that the created user is in the list - cy.get(`tbody.user-list__body tr td[data-test="john"]`).parents('tr').within(() => { + cy.get('tbody.user-list__body tr[data-test="john"]').within(() => { // see that the list of users contains the user john cy.contains('john').should('exist') }) @@ -139,7 +139,7 @@ describe('Settings: Create and delete users', function() { cy.reload().login(admin) // see that the user is in the list - cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').within(() => { + cy.get(`tbody.user-list__body tr[data-test="${jdoe.userId}"]`).within(() => { // see that the list of users contains the user jdoe cy.contains(jdoe.userId).should('exist') // open the actions menu for the user @@ -165,6 +165,6 @@ describe('Settings: Create and delete users', function() { }) // deleted clicked the user is not shown anymore - cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').should('not.be.visible') + cy.get(`tbody.user-list__body tr[data-test="${jdoe.userId}"]`).should('not.exist') }) }) |