Skip to content

Commit 7d8d8ca

Browse files
VIA-673 MD: Remove Hib/ManC page and related links + related e2e tests
1 parent d4a12c5 commit 7d8d8ca

File tree

6 files changed

+3
-32
lines changed

6 files changed

+3
-32
lines changed

e2e/constants.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ type VaccinePageName =
1313
| "menacwy"
1414
| "4-in-1"
1515
| "whooping-cough"
16-
| "hib-menc"
1716
| "flu-in-pregnancy"
1817
| "flu-vaccine"
1918
| "covid-19-vaccine"
@@ -136,12 +135,6 @@ export const AppPageDetails: Record<PageName, PageDetails> = {
136135
title: `Whooping cough vaccine in pregnancy - ${SERVICE_HEADING} - ${NHS_TITLE_SUFFIX}`,
137136
snapshotFilename: "default-whooping-cough.png",
138137
},
139-
"hib-menc": {
140-
url: "/vaccines/hib-menc-vaccine",
141-
heading: "Hib/MenC vaccine",
142-
title: `Hib/MenC vaccine - ${SERVICE_HEADING} - ${NHS_TITLE_SUFFIX}`,
143-
snapshotFilename: "default-hib-menc.png",
144-
},
145138
"flu-in-pregnancy": {
146139
url: "/vaccines/flu-vaccine-in-pregnancy",
147140
heading: "The flu vaccine in pregnancy",

e2e/general/navigation.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ test.describe("Navigation", () => {
5353
{ section: AgeSectionTestId.CHILDREN, linkText: "MMR (measles, mumps and rubella)", pageName: "mmr" },
5454
{ section: AgeSectionTestId.CHILDREN, linkText: "MenB", pageName: "menb-children" },
5555
{ section: AgeSectionTestId.CHILDREN, linkText: "Pneumococcal", pageName: "pneumococcal" },
56-
{ section: AgeSectionTestId.CHILDREN, linkText: "Hib/MenC", pageName: "hib-menc" },
57-
5856
{ section: AgeSectionTestId.BABIES, linkText: "6-in-1", pageName: "6-in-1" },
5957
{ section: AgeSectionTestId.BABIES, linkText: "Rotavirus", pageName: "rotavirus" },
6058
{ section: AgeSectionTestId.BABIES, linkText: "Pneumococcal", pageName: "pneumococcal" },

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import React from "react";
66

77
describe("Callout component", () => {
88
it("renders correctly", () => {
9-
const vaccineType = VaccineType.HIB_MENC;
9+
const vaccineType = VaccineType.MMR;
1010

1111
render(<Callout styledVaccineContent={mockStyledContent} vaccineType={vaccineType} />);
1212

src/app/_components/vaccine/Vaccine.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ describe("Any vaccine page", () => {
150150
});
151151

152152
it("should include callout text", async () => {
153-
await renderNamedVaccinePage(VaccineType.HIB_MENC);
153+
await renderNamedVaccinePage(VaccineType.MMR);
154154

155155
const calloutText: HTMLElement = screen.getByTestId("callout");
156156

@@ -230,7 +230,7 @@ describe("Any vaccine page", () => {
230230
});
231231

232232
it("should not display callout", async () => {
233-
await renderNamedVaccinePage(VaccineType.HIB_MENC);
233+
await renderNamedVaccinePage(VaccineType.HPV);
234234

235235
const overviewText: HTMLElement | null = screen.queryByTestId("callout");
236236

src/app/vaccines-for-all-ages/page.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ describe("VaccinesForAllAges", () => {
7272
"/vaccines/4-in-1-preschool-booster-vaccine",
7373
AgeSectionTestId.CHILDREN,
7474
);
75-
assertCardLinkIsPresentInSection("Hib/MenC", "/vaccines/hib-menc-vaccine", AgeSectionTestId.CHILDREN);
76-
7775
assertCardLinkIsPresentInSection("6-in-1", "/vaccines/6-in-1-vaccine", AgeSectionTestId.BABIES);
7876
assertCardLinkIsPresentInSection("Rotavirus", "/vaccines/rotavirus-vaccine", AgeSectionTestId.BABIES);
7977
assertCardLinkIsPresentInSection("Pneumococcal", "/vaccines/pneumococcal-vaccine", AgeSectionTestId.BABIES);

src/models/vaccine.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ enum VaccineType {
1919
MENACWY = "MENACWY",
2020
VACCINE_4_IN_1 = "VACCINE_4_IN_1",
2121
WHOOPING_COUGH = "WHOOPING_COUGH",
22-
HIB_MENC = "HIB_MENC",
2322
FLU_IN_PREGNANCY = "FLU_IN_PREGNANCY",
2423
COVID_19 = "COVID_19",
2524
FLU_FOR_ADULTS = "FLU_FOR_ADULTS",
@@ -279,22 +278,6 @@ const VaccineInfo: Record<VaccineType, VaccineDetails> = {
279278
contentPath: "pregnancy/keeping-well/whooping-cough-vaccination" as UrlPathFragment,
280279
cacheFilename: "whooping-cough-vaccination.json" as Filename,
281280
},
282-
[VaccineType.HIB_MENC]: {
283-
urlPath: "hib-menc-vaccine" as UrlPathFragment,
284-
displayName: {
285-
titleCase: "Hib/MenC",
286-
midSentenceCase: "Hib/MenC",
287-
indefiniteArticle: "a",
288-
suffix: "vaccine",
289-
},
290-
heading: "Hib/MenC vaccine",
291-
cardLinkTitle: "Hib/MenC",
292-
nhsWebpageLink: new URL("https://www.nhs.uk/vaccinations/hib-menc-vaccine/"),
293-
nhsHowToGetWebpageLink: new URL("https://www.nhs.uk/vaccinations/hib-menc-vaccine/#how-to-get-it"),
294-
personalisedEligibilityStatusRequired: false,
295-
contentPath: "vaccinations/hib-menc-vaccine" as UrlPathFragment,
296-
cacheFilename: "hib-menc-vaccine.json" as Filename,
297-
},
298281
[VaccineType.FLU_IN_PREGNANCY]: {
299282
urlPath: "flu-vaccine-in-pregnancy" as UrlPathFragment,
300283
displayName: {
@@ -409,7 +392,6 @@ const childVaccines: VaccineType[] = [
409392
VaccineType.MMR,
410393
VaccineType.MENB_CHILDREN,
411394
VaccineType.PNEUMOCOCCAL,
412-
VaccineType.HIB_MENC,
413395
];
414396
const babyVaccines: VaccineType[] = [
415397
VaccineType.VACCINE_6_IN_1,

0 commit comments

Comments
 (0)