aboutsummaryrefslogtreecommitdiffstats
path: root/cypress
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-05-30 15:41:09 -0700
committerChristopher Ng <chrng8@gmail.com>2024-05-30 17:13:48 -0700
commit930e47d44c53efbe359407832bdf841feae16f53 (patch)
treeaea4c4219677df01d9dbd9a07ca72c581cf0471a /cypress
parentf54acd52a3b8bd0ba5e3034a93d0cae189750131 (diff)
downloadnextcloud-server-930e47d44c53efbe359407832bdf841feae16f53.tar.gz
nextcloud-server-930e47d44c53efbe359407832bdf841feae16f53.zip
test(cypress): Fix tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/e2e/settings/users.cy.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cypress/e2e/settings/users.cy.ts b/cypress/e2e/settings/users.cy.ts
index 45beb2de347..417191b26f8 100644
--- a/cypress/e2e/settings/users.cy.ts
+++ b/cypress/e2e/settings/users.cy.ts
@@ -39,6 +39,9 @@ describe('Settings: Create and delete accounts', function() {
cy.get('input[type="password"]').type(john.password)
// see that the password is 123456
cy.get('input[type="password"]').should('have.value', john.password)
+ })
+
+ cy.get('form[data-test="form"]').parents('[role="dialog"]').within(() => {
// submit the new user form
cy.get('button[type="submit"]').click({ force: true })
})
@@ -73,6 +76,9 @@ describe('Settings: Create and delete accounts', function() {
cy.get('input[type="password"]').should('exist').and('have.value', '')
cy.get('input[type="password"]').type(john.password)
cy.get('input[type="password"]').should('have.value', john.password)
+ })
+
+ cy.get('form[data-test="form"]').parents('[role="dialog"]').within(() => {
// submit the new user form
cy.get('button[type="submit"]').click({ force: true })
})