Skip to content

Commit 800064c

Browse files
VIA-236 Remove non-necessary test and 'use client' statement for CookiePolice page
1 parent 89e340f commit 800064c

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/app/our-policies/cookies-policy/page.test.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ describe("CookiesPolicy Component", () => {
2323
expect(thirdContentLink).toBeVisible();
2424
});
2525

26-
it("takes user to the correct section when content link is clicked", () => {
27-
render(<CookiesPolicy />);
28-
29-
const contentLink: HTMLElement = screen.getByRole("link", { name: "Summary" });
30-
contentLink.click();
31-
const summarySectionAfterClick: HTMLElement = screen.getByText(
32-
"NHS England (“we” or “us”) uses cookies to deliver this service. The information set out in this policy is provided in addition to our",
33-
);
34-
35-
expect(summarySectionAfterClick).toBeVisible();
36-
});
37-
3826
it("displays Summary heading and its text", () => {
3927
render(<CookiesPolicy />);
4028

src/app/our-policies/cookies-policy/page.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
"use client";
2-
31
import BackLink from "@src/app/_components/nhs-frontend/BackLink";
42
import ContentsList from "@src/app/_components/nhs-frontend/ContentsList";
53
import Details from "@src/app/_components/nhs-frontend/Details";

0 commit comments

Comments
 (0)