From 44592ac0509b5b8464c954dbf9be9c037e162a3a Mon Sep 17 00:00:00 2001 From: ajnart Date: Thu, 23 Jul 2026 00:51:13 +0200 Subject: [PATCH] test(custom-widgets): target labelled editor controls --- e2e/custom-widgets-custom-jsx-v2.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/e2e/custom-widgets-custom-jsx-v2.spec.ts b/e2e/custom-widgets-custom-jsx-v2.spec.ts index 160b4bd38..dbd66d005 100644 --- a/e2e/custom-widgets-custom-jsx-v2.spec.ts +++ b/e2e/custom-widgets-custom-jsx-v2.spec.ts @@ -58,8 +58,8 @@ describe("Custom JSX v2 workbench", () => { await request.getByRole("combobox", { name: "Option" }).first().click(); await page.getByRole("option", { name: "label" }).click(); await page.getByRole("button", { name: "Advanced manifest JSON" }).first().click(); - await expect(page.locator("#requests-editor-root")).toContainText('"$option": "label"'); - await page.locator("#jsx-editor-root").fill(initialTemplate); + await expect(page.locator("#requests-editor")).toContainText('"$option": "label"'); + await page.locator("#jsx-editor").fill(initialTemplate); await page.getByRole("button", { name: "Test and preview" }).last().click(); await expect(page.getByRole("complementary", { name: "Widget preview" }).getByText("E2E Widget")).toBeVisible({ @@ -70,7 +70,7 @@ describe("Custom JSX v2 workbench", () => { await expect(page.getByText('Widget "E2E Custom JSX v2" created successfully.')).toBeVisible({ timeout: 15_000 }); await page.waitForURL("**/manage/custom-widgets/edit/**", { timeout: 15_000 }); - await page.locator("#jsx-editor-root").fill(updatedTemplate); + await page.locator("#jsx-editor").fill(updatedTemplate); await page.getByRole("button", { name: "Save", exact: true }).last().click(); await expect(page.getByText('Widget "E2E Custom JSX v2" updated successfully.')).toBeVisible({ timeout: 15_000 });