Skip to content

Commit

Permalink
fix validation form testing
Browse files Browse the repository at this point in the history
  • Loading branch information
3FE3LE committed Sep 17, 2023
1 parent 833c24a commit 6ededb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/sign-in.spec.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/sign-up.spec.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 6ededb0

Please sign in to comment.