diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-27 17:27:18 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-02 19:10:28 +0200 |
| commit | 1cf6e66e62e2e00fec294298b8d244bb9457ab52 (patch) | |
| tree | 08649d0d7cef3306f832abc2aea8104fc3bb20cf /tests | |
| parent | 9004b22d7fb53f9dc98e65e4f450589b5d78cbd5 (diff) | |
test(e2e): add Footer navigation test
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'); + }); +}); |
