From 930e47d44c53efbe359407832bdf841feae16f53 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 30 May 2024 15:41:09 -0700 Subject: test(cypress): Fix tests Signed-off-by: Christopher Ng --- cypress/e2e/settings/users.cy.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cypress') 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 }) }) -- cgit v1.2.3