aboutsummaryrefslogtreecommitdiffstats
path: root/tests/cypress/e2e/pages/legal-notice.cy.ts
blob: 2e4f04537052778b0c42d8483ffd8a49f544a6ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { ROUTES } from '../../../../src/utils/constants';

describe('Legal Notice Page', () => {
  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'
    );
  });
});