Skip to content

Commit 8b10788

Browse files
committed
fix(cypress): users
Signed-off-by: Christopher Ng <[email protected]>
1 parent 0f52efa commit 8b10788

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cypress/e2e/settings/users.cy.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ describe('Settings: Create and delete users', function() {
4242
cy.visit('/settings/users')
4343

4444
// see that the user is in the list
45-
cy.get(`.user-list-grid .row[data-id="${jdoe.userId}"]`).within(() => {
45+
cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').within(() => {
4646
// see that the list of users contains the user jdoe
4747
cy.contains(jdoe.userId).should('exist')
4848
// open the actions menu for the user
49-
cy.get('.userActions button.action-item__menutoggle').click()
49+
cy.get('td.row__cell--actions button.action-item__menutoggle').click()
5050
})
5151

5252
// The "Delete user" action in the actions menu is shown and clicked
5353
cy.get('.action-item__popper .action').contains('Delete user').should('exist').click()
5454
// And confirmation dialog accepted
5555
cy.get('.oc-dialog button').contains(`Delete ${jdoe.userId}`).click()
5656
// deleted clicked the user is not shown anymore
57-
cy.get(`.user-list-grid .row[data-id="${jdoe.userId}"]`).should('not.exist')
57+
cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').should('not.be.visible')
5858
})
5959
})

0 commit comments

Comments
 (0)