aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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'
+ );
+ });
});