@@ -45,15 +45,17 @@ describe("Any vaccine page", () => {
4545
4646 it ( "should display overview text" , async ( ) => {
4747 await renderVaccinePage ( ) ;
48- const overviewBlock = screen . getByText ( "Overview text" ) ;
48+ const overviewBlock : HTMLElement = screen . getByText ( "Overview text" ) ;
4949 expect ( overviewBlock ) . toBeInTheDocument ( ) ;
5050 } ) ;
5151
5252 it ( "should display whatItIsFor expander block" , async ( ) => {
5353 await renderVaccinePage ( ) ;
5454
55- const heading = screen . getByText ( "what-heading" ) ;
56- const content = screen . getByText ( "What Section styled component" ) ;
55+ const heading : HTMLElement = screen . getByText ( "what-heading" ) ;
56+ const content : HTMLElement = screen . getByText (
57+ "What Section styled component" ,
58+ ) ;
5759
5860 expect ( heading ) . toBeInTheDocument ( ) ;
5961 expect ( content ) . toBeInTheDocument ( ) ;
@@ -62,8 +64,8 @@ describe("Any vaccine page", () => {
6264 it ( "should display whoVaccineIsFor expander block" , async ( ) => {
6365 await renderVaccinePage ( ) ;
6466
65- const heading = screen . getByText ( "who-heading" ) ;
66- const content = screen . getByRole ( "heading" , {
67+ const heading : HTMLElement = screen . getByText ( "who-heading" ) ;
68+ const content : HTMLElement = screen . getByRole ( "heading" , {
6769 level : 2 ,
6870 name : "Who Section styled component" ,
6971 } ) ;
@@ -75,8 +77,10 @@ describe("Any vaccine page", () => {
7577 it ( "should display howToGetVaccine expander block" , async ( ) => {
7678 await renderVaccinePage ( ) ;
7779
78- const heading = screen . getByText ( "how-heading" ) ;
79- const content = screen . getByText ( "How Section styled component" ) ;
80+ const heading : HTMLElement = screen . getByText ( "how-heading" ) ;
81+ const content : HTMLElement = screen . getByText (
82+ "How Section styled component" ,
83+ ) ;
8084
8185 expect ( heading ) . toBeInTheDocument ( ) ;
8286 expect ( content ) . toBeInTheDocument ( ) ;
@@ -85,7 +89,7 @@ describe("Any vaccine page", () => {
8589 it ( "should display webpage link" , async ( ) => {
8690 await renderVaccinePage ( ) ;
8791
88- const webpageLink = screen . getByRole ( "link" , {
92+ const webpageLink : HTMLElement = screen . getByRole ( "link" , {
8993 name : `Learn more about the ${ mockVaccineName } vaccination on nhs.uk` ,
9094 } ) ;
9195
0 commit comments