This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(landings): add landings by targets (#36)
Co-authored-by: Desoindx <xavier.desoindre@hotmail.fr>
- Loading branch information
1 parent
42c93b5
commit 378da31
Showing
64 changed files
with
2,588 additions
and
371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: /"); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.