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é') + }) +})