File tree Expand file tree Collapse file tree 2 files changed +0
-14
lines changed
src/app/our-policies/cookies-policy Expand file tree Collapse file tree 2 files changed +0
-14
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- "use client" ;
2-
31import BackLink from "@src/app/_components/nhs-frontend/BackLink" ;
42import ContentsList from "@src/app/_components/nhs-frontend/ContentsList" ;
53import Details from "@src/app/_components/nhs-frontend/Details" ;
You can’t perform that action at this time.
0 commit comments