From ecfb9d59e0d51357422815524e6c10763b03c19c Mon Sep 17 00:00:00 2001 From: ajnart Date: Thu, 30 Jul 2026 14:46:05 +0200 Subject: [PATCH] test: make custom widget value selector exact --- e2e/custom-widgets-custom-jsx-v2.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/custom-widgets-custom-jsx-v2.spec.ts b/e2e/custom-widgets-custom-jsx-v2.spec.ts index efc93ff6d..313c88863 100644 --- a/e2e/custom-widgets-custom-jsx-v2.spec.ts +++ b/e2e/custom-widgets-custom-jsx-v2.spec.ts @@ -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()]);