test: address custom widget review findings

This commit is contained in:
ajnart committed 2026-07-30 11:34:24 +02:00
1 parent 6eff1da08f
commit 45dd20f4f7
6 files changed
+96 -16

No files matched your search

+2
View File
@@ -414,6 +414,7 @@ describe("Custom JSX v2 workbench", () => {
await page.reload();
const migratedCard = page
.getByRole("main")
.getByText(legacyWidgetName, { exact: true })
.locator("xpath=ancestor::*[contains(@class, 'mantine-Card-root')]");
await expect(migratedCard.getByText("Migration required", { exact: true })).not.toBeVisible();
@@ -441,6 +442,7 @@ describe("Custom JSX v2 workbench", () => {
await page.reload();
const resurfacedLegacyCard = page
.getByRole("main")
.getByText(legacyWidgetName, { exact: true })
.locator("xpath=ancestor::*[contains(@class, 'mantine-Card-root')]");
await expect(resurfacedLegacyCard.getByText("Migration required", { exact: true })).toBeVisible();