Skip to content

Commit f1bf0ed

Browse files
VIA-300 SB Correct 4-in-1 vaccine link text and location.
1 parent dda7c81 commit f1bf0ed

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

e2e/general/navigation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ test.describe("Navigation", () => {
3535
{ section: AgeSectionTestId.CHILDREN, linkText: "Td/IPV (3-in-1 teenage booster)", pageName: "td-ipv" },
3636
{ section: AgeSectionTestId.CHILDREN, linkText: "MenACWY", pageName: "menacwy" },
3737
{ section: AgeSectionTestId.CHILDREN, linkText: "HPV", pageName: "hpv" },
38+
{ section: AgeSectionTestId.CHILDREN, linkText: "4-in-1 pre-school booster", pageName: "4-in-1" },
3839
{ section: AgeSectionTestId.CHILDREN, linkText: "MMR", pageName: "mmr" },
3940
{ section: AgeSectionTestId.CHILDREN, linkText: "MenB", pageName: "menb-children" },
4041
{ section: AgeSectionTestId.CHILDREN, linkText: "Pneumococcal", pageName: "pneumococcal" },
41-
{ section: AgeSectionTestId.CHILDREN, linkText: "4-in-1", pageName: "4-in-1" },
4242

4343
{ section: AgeSectionTestId.BABIES, linkText: "6-in-1", pageName: "6-in-1" },
4444
{ section: AgeSectionTestId.BABIES, linkText: "Rotavirus", pageName: "rotavirus" },

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ describe("VaccinesForAllAges", () => {
5757
assertCardLinkIsPresentInSection("MMR", "/vaccines/mmr-vaccine", AgeSectionTestId.CHILDREN);
5858
assertCardLinkIsPresentInSection("MenB", "/vaccines/menb-vaccine-for-children", AgeSectionTestId.CHILDREN);
5959
assertCardLinkIsPresentInSection("Pneumococcal", "/vaccines/pneumococcal-vaccine", AgeSectionTestId.CHILDREN);
60-
assertCardLinkIsPresentInSection("4-in-1", "/vaccines/4-in-1-preschool-booster-vaccine", AgeSectionTestId.CHILDREN);
60+
assertCardLinkIsPresentInSection(
61+
"4-in-1 pre-school booster",
62+
"/vaccines/4-in-1-preschool-booster-vaccine",
63+
AgeSectionTestId.CHILDREN,
64+
);
6165

6266
assertCardLinkIsPresentInSection("6-in-1", "/vaccines/6-in-1-vaccine", AgeSectionTestId.BABIES);
6367
assertCardLinkIsPresentInSection("Rotavirus", "/vaccines/rotavirus-vaccine", AgeSectionTestId.BABIES);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ const VaccinesForAllAges = (): JSX.Element => {
5555
title={`${VaccineInfo[VaccineTypes.HPV].cardLinkTitle}`}
5656
link={`/vaccines/${VaccineContentUrlPaths.HPV}`}
5757
/>
58+
<CardLink
59+
title={`${VaccineInfo[VaccineTypes.VACCINE_4_IN_1].cardLinkTitle}`}
60+
link={`/vaccines/${VaccineContentUrlPaths.VACCINE_4_IN_1}`}
61+
/>
5862
<CardLink
5963
title={`${VaccineInfo[VaccineTypes.MMR].cardLinkTitle}`}
6064
link={`/vaccines/${VaccineContentUrlPaths.MMR}`}
@@ -67,10 +71,6 @@ const VaccinesForAllAges = (): JSX.Element => {
6771
title={`${VaccineInfo[VaccineTypes.PNEUMOCOCCAL].cardLinkTitle}`}
6872
link={`/vaccines/${VaccineContentUrlPaths.PNEUMOCOCCAL}`}
6973
/>
70-
<CardLink
71-
title={`${VaccineInfo[VaccineTypes.VACCINE_4_IN_1].cardLinkTitle}`}
72-
link={`/vaccines/${VaccineContentUrlPaths.VACCINE_4_IN_1}`}
73-
/>
7474
</ul>
7575
<h2 className="nhsuk-heading-s">Vaccines for babies under 1 year old</h2>
7676
<ul className="nhsapp-cards nhsapp-cards--stacked" data-testid={"vaccine-cardlinks-babies"}>

src/models/vaccine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const VaccineInfo: Record<VaccineTypes, VaccineDetails> = {
225225
indefiniteArticle: "a",
226226
},
227227
heading: "4-in-1 pre-school booster vaccine",
228-
cardLinkTitle: "4-in-1",
228+
cardLinkTitle: "4-in-1 pre-school booster",
229229
nhsWebpageLink: new URL("https://www.nhs.uk/vaccinations/4-in-1-preschool-booster-vaccine/"),
230230
nhsHowToGetWebpageLink: new URL("https://www.nhs.uk/vaccinations/4-in-1-preschool-booster-vaccine/#how-to-get-it"),
231231
personalisedEligibilityStatusRequired: false,

0 commit comments

Comments
 (0)