Skip to content

Commit 2161727

Browse files
VIA-599 SB & AS Update site header from "Check and book an RSV vaccination" to "Check and book vaccinations".
1 parent 01c38c5 commit 2161727

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

e2e/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const login = async (browser: Browser, nhsLoginUsername: string): Promise
8888
await page.waitForURL("**/patient/services", { timeout: 30000 });
8989

9090
const newTabPromise = page.context().waitForEvent("page");
91-
await page.getByRole("link", { name: "Check and book an RSV vaccination" }).click();
91+
await page.getByRole("link", { name: "Check and book vaccinations" }).click();
9292
const newTabPage = await newTabPromise;
9393

9494
await newTabPage.waitForURL(user.vaccinationsHubUrl, { timeout: 60000, waitUntil: "networkidle" });

e2e/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type PageDetails = {
1212
snapshotFilename: string;
1313
};
1414

15-
const SERVICE_HEADING = "Check and book an RSV vaccination";
15+
const SERVICE_HEADING = "Check and book vaccinations";
1616
const NHS_TITLE_SUFFIX = "NHS";
1717

1818
export const AppPageDetails: Record<PageName, PageDetails> = {

src/app/_components/nhs-frontend/AppHeader.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jest.mock("@src/utils/auth/user-logout", () => ({
1818
}));
1919

2020
const expectHeaderVisible = (expectedVisible: boolean) => {
21-
const serviceLink: HTMLElement | null = screen.queryByText("Check and book an RSV vaccination");
21+
const serviceLink: HTMLElement | null = screen.queryByText("Check and book vaccinations");
2222
const logo: HTMLElement | null = screen.queryByRole("img", { name: "NHS" });
2323

2424
if (expectedVisible) {
@@ -60,7 +60,7 @@ describe("AppHeader", () => {
6060
render(<AppHeader />);
6161

6262
const logoAndServiceLink: HTMLElement = screen.getByRole("link", {
63-
name: "NHS Check and book an RSV vaccination homepage",
63+
name: "NHS Check and book vaccinations homepage",
6464
});
6565

6666
expect(logoAndServiceLink?.getAttribute("href")).toEqual("/check-and-book-rsv");
@@ -91,7 +91,7 @@ describe("AppHeader", () => {
9191
render(<AppHeader />);
9292

9393
const logoAndServiceLink: HTMLElement = screen.getByRole("link", {
94-
name: "NHS Check and book an RSV vaccination homepage",
94+
name: "NHS Check and book vaccinations homepage",
9595
});
9696

9797
expect(logoAndServiceLink.getAttribute("href")).toEqual("#");

src/app/check-and-book-rsv/page.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ describe("Vaccination Hub Page", () => {
114114
};
115115

116116
const expectHeadingToBeRendered = () => {
117-
expect(queryHeading("Check and book an RSV vaccination", 1)).toBeVisible();
117+
expect(queryHeading("Check and book vaccinations", 1)).toBeVisible();
118118
};
119119
});

src/app/check-and-book-vaccinations/page.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe("Vaccination Hub Page", () => {
1212
});
1313

1414
const expectHeadingToBeRendered = () => {
15-
expect(queryHeading("Check and book an RSV vaccination", 1)).toBeVisible();
15+
expect(queryHeading("Check and book vaccinations", 1)).toBeVisible();
1616
};
1717

1818
const queryHeading = (text: string, level: number): HTMLElement | null => {

src/app/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const VACCINATIONS_HUB_PAGE_ROUTE = "/check-and-book-rsv";
2-
export const SERVICE_HEADING = "Check and book an RSV vaccination";
2+
export const SERVICE_HEADING = "Check and book vaccinations";
33
export const VACCINES_FOR_ALL_AGES_PAGE = "Vaccines for all ages";
44
export const NHS_TITLE_SUFFIX = "NHS";
55
export const HUB_FEEDBACK_REFERRER_ID = "hub";

src/app/vaccines/[vaccine]/page.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe("Dynamic vaccine page", () => {
4040

4141
it("has vaccine title", async () => {
4242
await renderDynamicPage("rsv");
43-
expect(document.title).toBe("RSV vaccine for older adults - Check and book an RSV vaccination - NHS");
43+
expect(document.title).toBe("RSV vaccine for older adults - Check and book vaccinations - NHS");
4444
});
4545

4646
it("renders the feedback banner with correct url", async () => {

0 commit comments

Comments
 (0)