File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ test.describe("Vaccination campaigns", () => {
1515
1616 await page . goto ( pageDetails . url ) ;
1717
18- await expect ( page . getByText ( " Booking service closed" ) ) . not . toBeVisible ( ) ;
19- await expect ( page . getByText ( " Book an appointment online at a pharmacy" ) ) . toBeVisible ( ) ;
18+ await expect ( page . getByRole ( "heading" , { name : "Important: Booking service" } ) ) . not . toBeVisible ( ) ;
19+ await expect ( page . getByRole ( "heading" , { name : " Book an appointment online at" } ) ) . toBeVisible ( ) ;
2020 } ) ;
2121
2222 test ( "while campaign inactive" , async ( { page } ) => {
@@ -27,8 +27,8 @@ test.describe("Vaccination campaigns", () => {
2727
2828 await page . goto ( pageDetails . url ) ;
2929
30- await expect ( page . getByText ( " Booking service closed" ) ) . toBeVisible ( ) ;
31- await expect ( page . getByText ( " Book an appointment online at a pharmacy" ) ) . not . toBeVisible ( ) ;
30+ await expect ( page . getByRole ( "heading" , { name : "Important: Booking service" } ) ) . toBeVisible ( ) ;
31+ await expect ( page . getByRole ( "heading" , { name : " Book an appointment online at" } ) ) . not . toBeVisible ( ) ;
3232 } ) ;
3333 } ) ;
3434} ) ;
You can’t perform that action at this time.
0 commit comments