From b3e072ff4f02e59597cb20155f28ab3c59c94d9d Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sat, 18 Jul 2026 18:41:41 +0200 Subject: [PATCH] fix(e2e): use getByLabel for widget Name to avoid strict mode collision with inline API source Name field --- e2e/custom-widgets-custom-jsx.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/custom-widgets-custom-jsx.spec.ts b/e2e/custom-widgets-custom-jsx.spec.ts index 1cc732430..7962aa070 100644 --- a/e2e/custom-widgets-custom-jsx.spec.ts +++ b/e2e/custom-widgets-custom-jsx.spec.ts @@ -50,7 +50,7 @@ describe("Custom JSX custom widgets", () => { await page.goto(`${baseUrl}/manage/custom-widgets/new`); await page.waitForURL("**/manage/custom-widgets/new", { timeout: 15_000 }); - await page.getByRole("textbox", { name: "Name" }).fill("E2E Custom JSX"); + await page.getByLabel("Name *").fill("E2E Custom JSX"); await page.getByRole("textbox", { name: "URL", exact: true }).fill(`${mockApi.url}/status`); await page.getByRole("button", { name: /Custom JSX/u }).click(); await page.getByRole("combobox", { name: "Network scope" }).click(); @@ -114,7 +114,7 @@ describe("Custom JSX custom widgets", () => { await page.goto(`${baseUrl}/manage/custom-widgets/new`); await page.waitForURL("**/manage/custom-widgets/new", { timeout: 15_000 }); - await page.getByRole("textbox", { name: "Name" }).fill("Board Widget"); + await page.getByLabel("Name *").fill("Board Widget"); await page.getByRole("textbox", { name: "URL", exact: true }).fill(`${mockApi.url}/status`); await page.getByRole("button", { name: /Custom JSX/u }).click(); await page.getByRole("combobox", { name: "Network scope" }).click();