Skip to content

Commit

Permalink
Unbreak the app on purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsongs committed Oct 23, 2023
1 parent f2e2fe7 commit 736f158
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/CAC-TAT.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Central de Atendimento ao Cliente TAT', function() {
cy.get('.success').should('be.visible')
})

it('exibe mensagem de erro ao submeter o formulário com um email com formatação inválida', function() {
it.only('exibe mensagem de erro ao submeter o formulário com um email com formatação inválida', function() {
cy.get('#firstName').type('Gilson')
cy.get('#lastName').type('Silva')
cy.get('#email').type('gilsongs.1979@gmail,com')
Expand Down
2 changes: 1 addition & 1 deletion src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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 736f158

Please # to comment.