diff options
Diffstat (limited to 'tests/cypress/e2e')
| -rw-r--r-- | tests/cypress/e2e/pages/projects.cy.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/cypress/e2e/pages/projects.cy.ts b/tests/cypress/e2e/pages/projects.cy.ts index b477400..5931ffe 100644 --- a/tests/cypress/e2e/pages/projects.cy.ts +++ b/tests/cypress/e2e/pages/projects.cy.ts @@ -1,6 +1,22 @@ +import { ROUTES } from '../../../../src/utils/constants'; + describe('Projects Page', () => { + beforeEach(() => { + cy.visit(ROUTES.PROJECTS); + }); + it('successfully loads', () => { - cy.visit('/projets'); cy.findByRole('heading', { level: 1 }).contains('Projets'); }); + + it('contains a breadcrumbs', () => { + cy.findByRole('navigation', { name: 'Fil d’Ariane' }).should('exist'); + }); + + it('can list the projects', () => { + cy.findAllByRole('link', { name: /Consulter/ }).should( + 'have.length.at.least', + 1 + ); + }); }); |
