From 1cf6e66e62e2e00fec294298b8d244bb9457ab52 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 27 May 2022 17:27:18 +0200 Subject: test(e2e): add Footer navigation test --- tests/cypress/e2e/nav.cy.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/cypress/e2e/nav.cy.ts b/tests/cypress/e2e/nav.cy.ts index cdca0df..5851058 100644 --- a/tests/cypress/e2e/nav.cy.ts +++ b/tests/cypress/e2e/nav.cy.ts @@ -60,3 +60,15 @@ describe( }); } ); + +describe('Footer navigation', () => { + beforeEach(() => { + cy.visit('/'); + }); + + it('should navigate to the legal notice page', async () => { + cy.findByRole('link', { name: /Mentions légales/i }).click(); + cy.url().should('include', '/mentions-legales'); + cy.findByRole('heading', { level: 1 }).contains('Mentions légales'); + }); +}); -- cgit v1.2.3