diff options
Diffstat (limited to 'tests/cypress/e2e/pages')
| -rw-r--r-- | tests/cypress/e2e/pages/blog.cy.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/cypress/e2e/pages/blog.cy.ts b/tests/cypress/e2e/pages/blog.cy.ts index 3a422d2..0350e39 100644 --- a/tests/cypress/e2e/pages/blog.cy.ts +++ b/tests/cypress/e2e/pages/blog.cy.ts @@ -11,6 +11,14 @@ describe('Blog Page', () => { cy.visit(ROUTES.BLOG); }); + it('successfully loads', () => { + cy.findByRole('heading', { level: 1 }).should('exist'); + }); + + it('contains a breadcrumbs', () => { + cy.findByRole('navigation', { name: 'Fil d’Ariane' }).should('exist'); + }); + it('loads the correct number of pages', () => { cy.findByText( /(?<first>\d+) articles chargés sur un total de (?<total>\d+)/i @@ -49,4 +57,9 @@ describe('Blog Page', () => { ); }); }); + + it('contains a thematics list widget and a topics list widget', () => { + cy.findByRole('heading', { level: 2, name: 'Thématiques' }).should('exist'); + cy.findByRole('heading', { level: 2, name: 'Sujets' }).should('exist'); + }); }); |
