From 7948267b2f511617e1e66698854b2f146d657fa3 Mon Sep 17 00:00:00 2001 From: Ian Jones Date: Wed, 10 Jan 2024 16:12:28 +0000 Subject: [PATCH] fix: Tests for E2E --- e2e/tests/ui-driven/src/globalHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/tests/ui-driven/src/globalHelpers.ts b/e2e/tests/ui-driven/src/globalHelpers.ts index 97cdf74e49..52be7509c0 100644 --- a/e2e/tests/ui-driven/src/globalHelpers.ts +++ b/e2e/tests/ui-driven/src/globalHelpers.ts @@ -193,7 +193,7 @@ export async function answerChecklist({ }); await expect(checklist).toBeVisible(); for (const answer of answers) { - await page.getByRole("button", { name: answer, exact: true }).click(); + await page.getByLabel(answer, { exact: true }).click(); } }