diff options
author | Christopher Ng <chrng8@gmail.com> | 2023-07-07 17:13:37 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2023-07-12 17:30:11 -0700 |
commit | b65eb0c03d016fa86a931a1457b8a9ba464a8451 (patch) | |
tree | 318782fdd70b0b2eefb667f42ba09f3bd1550104 /cypress | |
parent | 957dbee1b02f4adc9b7a58913a3709fd8cedd288 (diff) | |
download | nextcloud-server-b65eb0c03d016fa86a931a1457b8a9ba464a8451.tar.gz nextcloud-server-b65eb0c03d016fa86a931a1457b8a9ba464a8451.zip |
fix(cypress): users_modify
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress')
-rw-r--r-- | cypress/e2e/settings/users_modify.cy.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cypress/e2e/settings/users_modify.cy.ts b/cypress/e2e/settings/users_modify.cy.ts index d78104c7591..20ddd5a9c87 100644 --- a/cypress/e2e/settings/users_modify.cy.ts +++ b/cypress/e2e/settings/users_modify.cy.ts @@ -39,23 +39,21 @@ describe('Settings: Change user properties', function() { // open the User settings cy.visit('/settings/users') - cy.get(`.user-list-grid .row[data-id="${jdoe.userId}"]`).within(($row) => { + 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') // toggle the edit mode for the user jdoe - cy.get('.userActions .action-items > button:first-of-type').click() + cy.get('td.row__cell--actions .action-items > button:first-of-type').click() }) - cy.get(`.user-list-grid .row[data-id="${jdoe.userId}"]`).within(($row) => { - // see that the edit mode is on - cy.wrap($row).should('have.class', 'row--editable') + cy.get(`tbody.user-list__body tr td[data-test="${jdoe.userId}"]`).parents('tr').within(() => { // see that the password of user0 is "" cy.get('input[type="password"]').should('exist').and('have.value', '') // set the password for user0 to 123456 cy.get('input[type="password"]').type('123456') // When I set the password for user0 to 123456 cy.get('input[type="password"]').should('have.value', '123456') - cy.get('.password button').click() + cy.get('input[type="password"] ~ button').click() // Ignore failure if modal is not shown cy.once('fail', (error) => { |