Skip to content

Commit

Permalink
Basic tests of about page
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Sep 17, 2024
1 parent f15240d commit 7979d3f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions cypress/e2e/about_page.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
describe("About page", () => {
it("Shows About content", () => {
cy.visit("/about");
cy.get("h2").should(
"contain",
"Welcome to the Addenbrooke’s Cognitive Examination-III (ACE-III) Online Dementia Screening Tool"
);
});

it("Shows content from markdown", () => {
cy.visit("/about");
cy.get("p").should(
"contain",
"This tool, developed by the FRONTIER Research Group at the\n" +
"University of Sydney, is designed to assist clinicians in\n" +
"screening patients for dementia."
);
});
});

0 comments on commit 7979d3f

Please sign in to comment.