From 965b9d79c29d0adbd6520b8da2f20205b311a883 Mon Sep 17 00:00:00 2001 From: Gilson da Silva Date: Mon, 23 Oct 2023 12:22:26 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20ref.=20se=C3=A7=C3=A3o?= =?UTF-8?q?=2012=20-=20aula=2052=20-=20exerc=C3=ADcio=20extra=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cypress/integration/CAC-TAT.spec.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cypress/integration/CAC-TAT.spec.js b/cypress/integration/CAC-TAT.spec.js index 36879f9d2..3bf415553 100644 --- a/cypress/integration/CAC-TAT.spec.js +++ b/cypress/integration/CAC-TAT.spec.js @@ -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') @@ -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) + }) }) \ No newline at end of file