aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cypress/e2e
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-12-09 18:13:46 +0100
committerArmand Philippot <git@armandphilippot.com>2023-12-09 18:18:34 +0100
commitcd2cb5748be9e9c479d9802dd3897de1cd1cbd9f (patch)
tree29d0022f7beb1d365354079479f653cd4ff70ba9 /tests/cypress/e2e
parent2cc983064467fdef5630eeabc1a87d454afdb58d (diff)
refactor(pages): refine LegalNotice page
* remove unnecessary dependency (useRouter) * fix React errors (blurWidth/blurHeight) * complete Cypress tests
Diffstat (limited to 'tests/cypress/e2e')
-rw-r--r--tests/cypress/e2e/pages/legal-notice.cy.ts15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/cypress/e2e/pages/legal-notice.cy.ts b/tests/cypress/e2e/pages/legal-notice.cy.ts
index 0f2fb8c..2e4f045 100644
--- a/tests/cypress/e2e/pages/legal-notice.cy.ts
+++ b/tests/cypress/e2e/pages/legal-notice.cy.ts
@@ -1,8 +1,21 @@
import { ROUTES } from '../../../../src/utils/constants';
describe('Legal Notice Page', () => {
- it('successfully loads', () => {
+ beforeEach(() => {
cy.visit(ROUTES.LEGAL_NOTICE);
+ });
+
+ it('successfully loads', () => {
cy.findByRole('heading', { level: 1 }).contains('Mentions légales');
});
+
+ it('contains a breadcrumbs', () => {
+ cy.findByRole('navigation', { name: 'Fil d’Ariane' }).should('exist');
+ });
+
+ it('contains a table of contents', () => {
+ cy.findByRole('heading', { level: 2, name: 'Table des matières' }).should(
+ 'exist'
+ );
+ });
});