From 6ededb0f7f6d9db7870769b90ca6949040c48f9d Mon Sep 17 00:00:00 2001 From: Frank Licona <3l33f3@gmail.com> Date: Sat, 16 Sep 2023 19:26:52 -0500 Subject: [PATCH] fix validation form testing --- cypress/e2e/sign-in.spec.cy.tsx | 2 +- cypress/e2e/sign-up.spec.cy.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/sign-in.spec.cy.tsx b/cypress/e2e/sign-in.spec.cy.tsx index 64921fe..3c8cbd8 100644 --- a/cypress/e2e/sign-in.spec.cy.tsx +++ b/cypress/e2e/sign-in.spec.cy.tsx @@ -14,7 +14,7 @@ describe('Validate Form', () => { // The new page should contain a button with the value "Sign In" // On button pressed without dirty fields - cy.get('button').contains('Sign in').should('be.visible').click() + cy.get('button').contains('Sign in').should('be.visible').click().click() // The email input will be focused waiting to type a email cy.get('input[name="email"]').should('be.focus') diff --git a/cypress/e2e/sign-up.spec.cy.tsx b/cypress/e2e/sign-up.spec.cy.tsx index 13185b9..1b8bb65 100644 --- a/cypress/e2e/sign-up.spec.cy.tsx +++ b/cypress/e2e/sign-up.spec.cy.tsx @@ -17,7 +17,7 @@ describe('Validate Form', () => { // The new page should contain a button with the value "Sign Up" // On button pressed without dirty fields - cy.get('button').contains('Sign Up').should('be.visible').click() + cy.get('button').contains('Sign Up').should('be.visible').click().click() // The email input will be focused waiting to type a email cy.get('input[name="fullName"]').should('be.focus')