test: make custom widget value selector exact

This commit is contained in:
ajnart committed 2026-07-30 14:46:05 +02:00
1 parent 93c95e1846
commit ecfb9d59e0
1 file changed
+1 -1
+1 -1
View File
@@ -234,7 +234,7 @@ describe("Custom JSX v2 workbench", () => {
await addCustomWidgetToBoard(page, baseUrl, "E2E Custom JSX v2");
await expect(page.getByText("E2E Widget")).toBeVisible({ timeout: 15_000 });
await expect(page.getByText("42")).toBeVisible({ timeout: 15_000 });
await expect(page.getByText("42", { exact: true })).toBeVisible({ timeout: 15_000 });
await expect(page.getByText("Widget definition not found")).not.toBeVisible();
} finally {
await Promise.allSettled([browser?.close(), homarrContainer?.stop(), mockApi?.close()]);