fix(e2e): use getByLabel for widget Name to avoid strict mode collision with inline API source Name field

This commit is contained in:
Thomas Camlong committed 2026-07-18 18:41:41 +02:00
1 parent a31a8fd4dd
commit b3e072ff4f
1 file changed
+2 -2
+2 -2
View File
@@ -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();