Skip to content

Commit 930e47d

Browse files
committed
test(cypress): Fix tests
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent f54acd5 commit 930e47d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cypress/e2e/settings/users.cy.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ describe('Settings: Create and delete accounts', function() {
3939
cy.get('input[type="password"]').type(john.password)
4040
// see that the password is 123456
4141
cy.get('input[type="password"]').should('have.value', john.password)
42+
})
43+
44+
cy.get('form[data-test="form"]').parents('[role="dialog"]').within(() => {
4245
// submit the new user form
4346
cy.get('button[type="submit"]').click({ force: true })
4447
})
@@ -73,6 +76,9 @@ describe('Settings: Create and delete accounts', function() {
7376
cy.get('input[type="password"]').should('exist').and('have.value', '')
7477
cy.get('input[type="password"]').type(john.password)
7578
cy.get('input[type="password"]').should('have.value', john.password)
79+
})
80+
81+
cy.get('form[data-test="form"]').parents('[role="dialog"]').within(() => {
7682
// submit the new user form
7783
cy.get('button[type="submit"]').click({ force: true })
7884
})

0 commit comments

Comments
 (0)