From e313c9290175c281c84f3df9c6c18eaa0e865ad8 Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Tue, 23 Jul 2024 17:34:01 +0200 Subject: [PATCH] test(site): Ajoute un test e2e des CGU --- site/cypress/integration/mon-entreprise/footer.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/site/cypress/integration/mon-entreprise/footer.ts b/site/cypress/integration/mon-entreprise/footer.ts index a3c369174..228b3fe63 100644 --- a/site/cypress/integration/mon-entreprise/footer.ts +++ b/site/cypress/integration/mon-entreprise/footer.ts @@ -18,6 +18,21 @@ describe('Footer', function () { .and('include.text', 'Mentions légales') }) + it('should contain a terms of use link', function () { + cy.visit('/') + cy.contains('footer button', "Conditions générales d'utilisation").should( + 'be.visible' + ) + }) + + it('should display the terms of use on click', function () { + cy.visit('/') + cy.contains('footer button', "Conditions générales d'utilisation").click() + cy.get('div[data-cy="modal"]') + .should('be.visible') + .and('include.text', "Conditions générales d'utilisation") + }) + it('should contain a privacy policy link', function () { cy.visit('/') cy.contains('footer button', 'Politique de confidentialité').should(