Skip to content

Commit

Permalink
Atualização ref. seção 12 - aula 52 - exercício extra 3
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsongs committed Oct 23, 2023
1 parent dd1e31b commit 965b9d7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cypress/integration/CAC-TAT.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ describe('Central de Atendimento ao Cliente TAT', function() {
cy.contains('Talking About Testing').should('be.visible')
})

it('exibe e esconde as mensagens de sucesso e erro usando o .invoke', () => {
it('exibe e esconde as mensagens de sucesso e erro usando o .invoke', function() {
cy.get('.success')
.should('not.be.visible')
.invoke('show')
Expand All @@ -219,5 +219,13 @@ describe('Central de Atendimento ao Cliente TAT', function() {
.invoke('hide')
.should('not.be.visible')
})

it('preenche a area de texto usando o comando invoke', function() {
const longText = Cypress._.repeat('0123456789', 20)

cy.get('#open-text-area')
.invoke('val', longText)
.should('have.value', longText)
})
})

0 comments on commit 965b9d7

Please # to comment.