From 540e56dff30d525ad78291664b3880caa73ffdae Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Tue, 31 May 2022 23:18:05 +0200 Subject: test(e2e): add other pages test Sometimes a build can be successful but the page is not working, so these tests allows me to check if the page is correctly loaded. --- tests/cypress/e2e/pages/homepage.cy.ts | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/cypress/e2e/pages/homepage.cy.ts (limited to 'tests/cypress/e2e/pages/homepage.cy.ts') diff --git a/tests/cypress/e2e/pages/homepage.cy.ts b/tests/cypress/e2e/pages/homepage.cy.ts new file mode 100644 index 0000000..52bfbc7 --- /dev/null +++ b/tests/cypress/e2e/pages/homepage.cy.ts @@ -0,0 +1,9 @@ +import { settings } from '@utils/config'; + +describe('HomePage', () => { + it('successfully loads', () => { + cy.visit('/'); + cy.findByRole('heading', { level: 1 }).contains(settings.name); + cy.findByText(settings.baseline.fr).should('exist'); + }); +}); -- cgit v1.2.3