Skip to content

Commit 1cf87d2

Browse files
VIA-300 SB Correct Whooping cough (pertussis) link location.
1 parent 690ced0 commit 1cf87d2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

e2e/general/navigation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ test.describe("Navigation", () => {
3030
{ section: AgeSectionTestId.ADULTS, linkText: "Shingles", pageName: "shingles" },
3131
{ section: AgeSectionTestId.ADULTS, linkText: "Pneumococcal", pageName: "pneumococcal" },
3232

33-
{ section: AgeSectionTestId.PREGNANCY, linkText: "RSV in pregnancy", pageName: "rsv-pregnancy" },
3433
{ section: AgeSectionTestId.PREGNANCY, linkText: "Whooping cough (pertussis)", pageName: "whooping-cough" },
34+
{ section: AgeSectionTestId.PREGNANCY, linkText: "RSV in pregnancy", pageName: "rsv-pregnancy" },
3535

3636
{ section: AgeSectionTestId.CHILDREN, linkText: "Td/IPV (3-in-1 teenage booster)", pageName: "td-ipv" },
3737
{ section: AgeSectionTestId.CHILDREN, linkText: "MenACWY", pageName: "menacwy" },

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ describe("VaccinesForAllAges", () => {
4545
assertCardLinkIsPresentInSection("RSV", "/vaccines/rsv", AgeSectionTestId.ADULTS);
4646
assertCardLinkIsPresentInSection("Pneumococcal", "/vaccines/pneumococcal-vaccine", AgeSectionTestId.ADULTS);
4747

48-
assertCardLinkIsPresentInSection("RSV in pregnancy", "/vaccines/rsv-pregnancy", AgeSectionTestId.PREGNANCY);
4948
assertCardLinkIsPresentInSection(
5049
"Whooping cough (pertussis)",
5150
"/vaccines/whooping-cough-vaccination",
5251
AgeSectionTestId.PREGNANCY,
5352
);
53+
assertCardLinkIsPresentInSection("RSV in pregnancy", "/vaccines/rsv-pregnancy", AgeSectionTestId.PREGNANCY);
5454

5555
assertCardLinkIsPresentInSection(
5656
"Td/IPV (3-in-1 teenage booster)",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ const VaccinesForAllAges = (): JSX.Element => {
3535

3636
<h2 className="nhsuk-heading-s">Vaccines for pregnancy</h2>
3737
<ul className="nhsapp-cards nhsapp-cards--stacked" data-testid="vaccine-cardlinks-pregnancy">
38-
<CardLink
39-
title={`${VaccineInfo[VaccineType.RSV_PREGNANCY].cardLinkTitle}`}
40-
link={`/vaccines/${VaccineInfo.RSV_PREGNANCY.urlPath}`}
41-
/>
4238
<CardLink
4339
title={`${VaccineInfo[VaccineType.WHOOPING_COUGH].cardLinkTitle}`}
4440
link={`/vaccines/${VaccineInfo.WHOOPING_COUGH.urlPath}`}
4541
/>
42+
<CardLink
43+
title={`${VaccineInfo[VaccineType.RSV_PREGNANCY].cardLinkTitle}`}
44+
link={`/vaccines/${VaccineInfo.RSV_PREGNANCY.urlPath}`}
45+
/>
4646
</ul>
4747

4848
<h2 className="nhsuk-heading-s">Vaccines for children aged 1 to 15</h2>

0 commit comments

Comments
 (0)