Skip to content

Commit

Permalink
Fix the app
Browse files Browse the repository at this point in the history
  • Loading branch information
andrade30 committed Jul 23, 2024
1 parent bd298b2 commit 277259d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/CAC-TAT.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Central de Atendimento ao Cliente TAT', () => {
cy.get('.success').should('be.visible')
});

it('Exibe mensagem de erro ao submeter o formulário com um email com formatação inválida', () => {
it.only('Exibe mensagem de erro ao submeter o formulário com um email com formatação inválida', () => {
cy.get('#firstName').type('Alessandro')
cy.get('#lastName').type('Andrade')
cy.get('#email').type('andrade@email,com')
Expand Down
2 changes: 1 addition & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ document.querySelector('button[type="submit"]')
return showAndHideErrorMessage()
}
if (!emailField.value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
// return showAndHideErrorMessage()
return showAndHideErrorMessage()
}
firstNameField.value = ''
lastNameField.value = ''
Expand Down

0 comments on commit 277259d

Please sign in to comment.