Skip to content

Commit 1c87c72

Browse files
VIA-335 Temporarily skip E2E NBS tests in Preprod
NBS have reverted their staging config while performing a hotfix for another team which has removed the pages required by VitA from the environment. This commit can be reverted after the next time they deploy to their environment and confirm the URLs are available again.
1 parent 78b07fb commit 1c87c72

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

e2e/general/nbs.spec.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import {
99
} from "@project/e2e/constants";
1010
import { getEnv } from "@project/e2e/helpers";
1111

12+
const environment = getEnv("DEPLOY_ENVIRONMENT");
13+
1214
const loadNBSAuthEnvironmentVariables = () => {
1315
return {
1416
NBSUsername: getEnv("TEST_NBS_APP_USERNAME"),
@@ -31,6 +33,11 @@ export const loginToNBS = async (browser: Browser) => {
3133

3234
const testLinkToBookAppointmentForPregnantPeople = () => {
3335
test("link to book appointment at pharmacy on RSV page for pregnant people", async ({ browser }) => {
36+
test.skip(
37+
environment === "preprod",
38+
"Temporarily skip in Preprod until NBS re-deploy changes required by VIA-335, eta 2025-10-08",
39+
);
40+
3441
const { page, context } = await loginToNBS(browser);
3542

3643
await page.goto(RSV_PREGNANCY_PAGE_URL);
@@ -52,6 +59,11 @@ const testLinkToBookAppointmentForPregnantPeople = () => {
5259
test.describe.configure({ mode: "parallel", retries: 0 });
5360

5461
test.describe("NBS booking redirection - user 19", () => {
62+
test.skip(
63+
() => environment === "preprod",
64+
"Temporarily skip in Preprod until NBS re-deploy changes required by VIA-335, eta 2025-10-08",
65+
);
66+
5567
test.use({ storageState: "./e2e/.auth/actionable-with-booking-link.json" });
5668

5769
test("link to book appointment at pharmacy on RSV page for older adults", async ({ browser }) => {
@@ -76,6 +88,11 @@ test.describe("NBS booking redirection - user 19", () => {
7688
});
7789

7890
test.describe("NBS booking redirection - user 21", () => {
91+
test.skip(
92+
() => environment === "preprod",
93+
"Temporarily skip in Preprod until NBS re-deploy changes required by VIA-335, eta 2025-10-08",
94+
);
95+
7996
test.use({ storageState: "./e2e/.auth/actionable-with-booking-button.json" });
8097

8198
test("button to book appointment on RSV page", async ({ browser }) => {
@@ -100,6 +117,11 @@ test.describe("NBS booking redirection - user 21", () => {
100117
});
101118

102119
test.describe("NBS booking redirection - user 22", () => {
120+
test.skip(
121+
() => environment === "preprod",
122+
"Temporarily skip in Preprod until NBS re-deploy changes required by VIA-335, eta 2025-10-08",
123+
);
124+
103125
test.use({ storageState: "./e2e/.auth/actionable-with-managing-button.json" });
104126

105127
test("button to manage the appointment on RSV page", async ({ browser }) => {

0 commit comments

Comments
 (0)