Skip to content

Commit 8e831e8

Browse files
VIA-184 SB/EO Add Flu for adults End to End test
1 parent 79fe058 commit 8e831e8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

e2e/constants.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ type VaccinePageName =
1414
| "4-in-1"
1515
| "whooping-cough"
1616
| "hib-menc"
17-
| "flu-in-pregnancy";
17+
| "flu-in-pregnancy"
18+
| "flu-vaccine";
1819
type FailurePageName = "sso-failure" | "service-failure" | "not-found";
1920
type SessionPageName = "session-timeout" | "session-logout";
2021
type IndexPageName = "vaccines-for-all-ages" | "vaccine-hub" | "vaccines-during-pregnancy";
@@ -142,6 +143,12 @@ export const AppPageDetails: Record<PageName, PageDetails> = {
142143
title: `The flu vaccine in pregnancy - ${SERVICE_HEADING} - ${NHS_TITLE_SUFFIX}`,
143144
snapshotFilename: "default-flu-in-pregnancy.png",
144145
},
146+
"flu-vaccine": {
147+
url: "/vaccines/flu-vaccine",
148+
heading: "Flu vaccine",
149+
title: `Flu vaccine - ${SERVICE_HEADING} - ${NHS_TITLE_SUFFIX}`,
150+
snapshotFilename: "default-flu-vaccine.png",
151+
},
145152

146153
// failure pages
147154
"sso-failure": {

e2e/general/navigation.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ test.describe("Navigation", () => {
2626
});
2727

2828
const linksFromAllAges: { section: AgeSectionTestId; linkText: string; pageName: PageName }[] = [
29+
{ section: AgeSectionTestId.ADULTS, linkText: "Flu", pageName: "flu-vaccine" },
2930
{ section: AgeSectionTestId.ADULTS, linkText: "RSV", pageName: "rsv-older-adults" },
3031
{ section: AgeSectionTestId.ADULTS, linkText: "Shingles", pageName: "shingles" },
3132
{ section: AgeSectionTestId.ADULTS, linkText: "Pneumococcal", pageName: "pneumococcal" },

0 commit comments

Comments
 (0)