aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-10-04 17:54:42 -0700
committerChristopher Ng <chrng8@gmail.com>2023-10-05 16:52:37 -0700
commit37fa4efdae9620e85da3feb68103cfb06a6fc933 (patch)
tree9c2ed5cb45df736760c489aba37d0f37f5e3eb69 /cypress
parent8a31efb644ec2e3271f02470eff818f6ea8f3494 (diff)
downloadnextcloud-server-37fa4efdae9620e85da3feb68103cfb06a6fc933.tar.gz
nextcloud-server-37fa4efdae9620e85da3feb68103cfb06a6fc933.zip
fix(cypress): User table modify tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/settings/users_modify.cy.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cypress/e2e/settings/users_modify.cy.ts b/cypress/e2e/settings/users_modify.cy.ts
index 1fbcd60725c..ce5b0834edc 100644
--- a/cypress/e2e/settings/users_modify.cy.ts
+++ b/cypress/e2e/settings/users_modify.cy.ts
@@ -34,7 +34,7 @@ describe('Settings: Change user properties', function() {
})
beforeEach(function() {
- 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(() => {
// reset edit mode for the user jdoe
cy.get('td.row__cell--actions .action-items > button:first-of-type')
.invoke('attr', 'title')
@@ -51,14 +51,14 @@ describe('Settings: Change user properties', function() {
})
it('Can change the display name', function() {
- 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')
// toggle the edit mode for the user jdoe
cy.get('td.row__cell--actions .action-items > button:first-of-type').click()
})
- 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(() => {
// set the display name
cy.get('input[data-test="displayNameField"]').should('exist').and('have.value', 'jdoe')
cy.get('input[data-test="displayNameField"]').clear()
@@ -88,14 +88,14 @@ describe('Settings: Change user properties', function() {
})
it('Can change the password', function() {
- 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')
// toggle the edit mode for the user jdoe
cy.get('td.row__cell--actions .action-items > button:first-of-type').click()
})
- 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 password of user0 is ""
cy.get('input[type="password"]').should('exist').and('have.value', '')
// set the password for user0 to 123456