Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
feat: test e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Mar 25, 2022
1 parent d1fe795 commit 0296b3f
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 10 deletions.
7 changes: 7 additions & 0 deletions cypress/integration/accessibilite.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe("Accessibilité page", () => {
it("should render the page", () => {
cy.visit("http://localhost:3000/accessibilite");
cy.get("h1").should("contain", "Déclaration d’accessibilité");
cy.get("h2").should("contain", "Amélioration et contact");
});
});
10 changes: 0 additions & 10 deletions cypress/integration/app.spec.ts

This file was deleted.

7 changes: 7 additions & 0 deletions cypress/integration/cgu.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe("CGU page", () => {
it("should render the page", () => {
cy.visit("http://localhost:3000/cgu");
cy.get("h1").should("contain", "Conditions générales d'utilisation");
cy.get("h2").should("contain", "Absence de garantie");
});
});
6 changes: 6 additions & 0 deletions cypress/integration/healthz.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe("Healthz page", () => {
it("should render the page", () => {
cy.visit("http://localhost:3000/healthz");
cy.get("h1").should("contain", "App is up and running");
});
});
7 changes: 7 additions & 0 deletions cypress/integration/home.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe("Home page", () => {
it("should render the main page", () => {
cy.visit("http://localhost:3000/");
cy.get("h1").should("contain", "Template");
cy.get("h2").should("contain", "Aute");
});
});
7 changes: 7 additions & 0 deletions cypress/integration/mention-legales.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
describe("Mentions légales page", () => {
it("should render the page", () => {
cy.visit("http://localhost:3000/mention-legales");
cy.get("h1").should("contain", "Mentions légales");
cy.get("h2").should("contain", "Hébergement du site");
});
});
11 changes: 11 additions & 0 deletions cypress/integration/politique-confidentialite.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
describe("Politique de confidentialité page", () => {
it("should render the page", () => {
cy.visit("http://localhost:3000/politique-confidentialite");
cy.get("h1").should("contain", "Politique de confidentialité");
cy.get("h2").should(
"contain",
"Traitement des données à caractère personnel"
);
cy.get("h2").should("contain", "Cookies");
});
});
6 changes: 6 additions & 0 deletions cypress/integration/stats.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe("Stats page", () => {
it("should render the page", () => {
cy.visit("http://localhost:3000/stats");
cy.get("h1").should("contain", "Statistiques d'utilisation");
});
});

0 comments on commit 0296b3f

Please sign in to comment.