diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/cypress/e2e/nav.cy.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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'); + }); +}); |
