From 7e04853a4635346985ace7d9ef9dd3ac9913d8eb Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Tue, 23 Jul 2024 17:33:30 +0200 Subject: [PATCH] =?UTF-8?q?test(site):=20Ajoute=20un=20test=20e2e=20des=20?= =?UTF-8?q?mentions=20l=C3=A9gales=20et=20politique=20de=20confidentialit?= =?UTF-8?q?=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../integration/mon-entreprise/footer.ts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 site/cypress/integration/mon-entreprise/footer.ts diff --git a/site/cypress/integration/mon-entreprise/footer.ts b/site/cypress/integration/mon-entreprise/footer.ts new file mode 100644 index 000000000..a3c369174 --- /dev/null +++ b/site/cypress/integration/mon-entreprise/footer.ts @@ -0,0 +1,35 @@ +import { fr } from '../../support/utils' + +describe('Footer', function () { + if (!fr) { + return + } + + it('should contain a legal notice link', function () { + cy.visit('/') + cy.contains('footer button', 'Mentions légales').should('be.visible') + }) + + it('should display the legal notice on click', function () { + cy.visit('/') + cy.contains('footer button', 'Mentions légales').click() + cy.get('div[data-cy="modal"]') + .should('be.visible') + .and('include.text', 'Mentions légales') + }) + + it('should contain a privacy policy link', function () { + cy.visit('/') + cy.contains('footer button', 'Politique de confidentialité').should( + 'be.visible' + ) + }) + + it('should display the privacy policy on click', function () { + cy.visit('/') + cy.contains('footer button', 'Politique de confidentialité').click() + cy.get('div[data-cy="modal"]') + .should('be.visible') + .and('include.text', 'Politique de confidentialité') + }) +})