From 5be710d57044aebf19e2bed4742091fc25572503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Wed, 11 Dec 2024 10:35:56 +0000 Subject: [PATCH] fix: More explicit selector --- e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts b/e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts index 5f95abd97e..387c288aec 100644 --- a/e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts +++ b/e2e/tests/ui-driven/src/invite-to-pay/nominee.spec.ts @@ -64,7 +64,9 @@ test.describe("Nominee journey @regression", async () => { "Add a verandah or deck and changes to internal walls or layout"; await expect(page.getByText(formattedProjectType)).toBeVisible(); - await expect(page.getByText("Fee")).toBeVisible(); + await expect( + page.getByRole("heading", { name: "Fee", level: 3 }), + ).toBeVisible(); await expect(page.getByTestId("fee-breakdown-table")).toBeVisible(); const payButton = page.getByRole("button", {