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

Commit

Permalink
feat(landings): add landings by targets (#36)
Browse files Browse the repository at this point in the history
Co-authored-by: Desoindx <xavier.desoindre@hotmail.fr>
  • Loading branch information
carolineBda and desoindx authored Feb 17, 2022
1 parent 42c93b5 commit 378da31
Show file tree
Hide file tree
Showing 64 changed files with 2,588 additions and 371 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
"jsx-a11y/anchor-is-valid": "off",
"react/prop-types": "off",
"jsx-a11y/label-has-for": "off",
"import/no-unresolved": [2, {"caseSensitive": false}],
"import/no-unresolved": [
2,
{
"caseSensitive": false
}
],
"react/display-name": "off"
},
"overrides": [
Expand Down
14 changes: 14 additions & 0 deletions cypress/integration/faq.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
describe("FAQ", () => {
it("shoudl display FAQ", () => {
cy.visit("/faq");
cy.get("h1").should(
"have.text",
"Information sur le dispositif MonPsy"
);

cy.get("h2").should(
"have.text",
"Présentation du dispositif MonPsyMédecinPatientPsychologues"
);
});
});
37 changes: 37 additions & 0 deletions cypress/integration/home.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
describe("Home & landing pages", () => {
it("Home should be visible", () => {
cy.visit("/");

cy.get("h1").should(
"have.text",
"MonPsy A partir d’avril 2022, l’accès à un accompagnement psychologique pour tous (dès 3 ans)"
);

cy.get("nav")
.first()
.should(
"have.text",
"AccueilJe suis angoissé(e) ou déprimé(e)Je suis psychologueJe suis médecinFoire aux questions"
);

cy.get("h2").first().should("have.text", "Je suis angoissé(e), déprimé(e)");
});

it("Patient page should be visible", () => {
cy.visit("/");

cy.get("h2 a").first().click();

cy.url().should("include", "/patients");

cy.get("h1").should("have.text", "Je suis angoissé(e) ou déprimé(e)");
cy.get("h2").first().should("have.text", "Quel est le rôle du médecin ?");
});

it("robots.txt should be visible", () => {
cy.visit("/");
cy.request("/robots.txt")
.its("body")
.should("include", "User-agent: *\nAllow: /");
});
});
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"test": "jest --runInBand",
"build": "next build",
"dev": "next dev",
"e2e": "yarn --cwd=./optional/e2e/runners/puppeteer",
"k8s": "yarn --silent --cwd .socialgouv",
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
Expand Down
Binary file not shown.
Binary file added public/documents/Courrier_d_adressage.docx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added public/images/Filsantejeunes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/Psychologist-hero.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/Psycom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/SOSAmitie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions public/images/Sante-publique-France-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/Video-MonPsy.mp4
Binary file not shown.
1 change: 1 addition & 0 deletions public/images/children-psy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions public/images/children.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
1 change: 1 addition & 0 deletions public/images/doctor-home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/doctor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions public/images/logo-3114.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/patient-home.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 378da31

Please sign in to comment.