From dd1e31bdf74e5298de2c01d32450f3dd623d82b4 Mon Sep 17 00:00:00 2001 From: Gilson da Silva Date: Mon, 23 Oct 2023 11:52:32 -0300 Subject: [PATCH] =?UTF-8?q?Atualiza=C3=A7=C3=A3o=20ref.=20se=C3=A7=C3=A3o?= =?UTF-8?q?=2012=20-=20aula=2050=20-=20exerc=C3=ADcio=20extra=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cypress/integration/CAC-TAT.spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/cypress/integration/CAC-TAT.spec.js b/cypress/integration/CAC-TAT.spec.js index 154695493..36879f9d2 100644 --- a/cypress/integration/CAC-TAT.spec.js +++ b/cypress/integration/CAC-TAT.spec.js @@ -202,5 +202,22 @@ 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', () => { + cy.get('.success') + .should('not.be.visible') + .invoke('show') + .should('be.visible') + .and('contain', 'Mensagem enviada com sucesso.') + .invoke('hide') + .should('not.be.visible') + cy.get('.error') + .should('not.be.visible') + .invoke('show') + .should('be.visible') + .and('contain', 'Valide os campos obrigatórios!') + .invoke('hide') + .should('not.be.visible') + }) }) \ No newline at end of file