Skip to content

Commit 9a41f6b

Browse files
VIA-601 MD/AJ: Add e2e test to test static service-failure page
1 parent 53f94e1 commit 9a41f6b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

e2e/constants.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type VaccinePageName =
1919
| "covid-19-vaccine"
2020
| "flu-for-children"
2121
| "flu-for-school-aged-children";
22-
type FailurePageName = "sso-failure" | "service-failure" | "not-found";
22+
type FailurePageName = "sso-failure" | "service-failure" | "service-failure-static" | "not-found";
2323
type SessionPageName = "session-timeout" | "session-logout";
2424
type IndexPageName = "vaccines-for-all-ages" | "vaccine-hub" | "vaccines-during-pregnancy";
2525

@@ -184,6 +184,12 @@ export const AppPageDetails: Record<PageName, PageDetails> = {
184184
title: `There is a problem with the service - ${SERVICE_HEADING} - ${NHS_TITLE_SUFFIX}`,
185185
snapshotFilename: "default-service-failure.png",
186186
},
187+
"service-failure-static": {
188+
url: "/assets/static/service-failure.html",
189+
heading: "There is a problem with the service",
190+
title: `There is a problem with the service - ${SERVICE_HEADING} - ${NHS_TITLE_SUFFIX}`,
191+
snapshotFilename: "default-service-failure.png",
192+
},
187193
"not-found": {
188194
url: "/page-does-not-exist",
189195
heading: "Page not found",

0 commit comments

Comments
 (0)