Skip to content

Commit 7606bd7

Browse files
VIA-629 AJ/EO Fix e2e selector for open and closed COVID campaigns
1 parent d7c4b18 commit 7606bd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

e2e/general/campaigns.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)