diff --git a/ui-v2/e2e/blocks/block-catalog.spec.ts b/ui-v2/e2e/blocks/block-catalog.spec.ts index 8d00c8805e61..cc6931a5ac42 100644 --- a/ui-v2/e2e/blocks/block-catalog.spec.ts +++ b/ui-v2/e2e/blocks/block-catalog.spec.ts @@ -82,13 +82,14 @@ test.describe("Block Catalog", () => { }); await expect(page.getByText(blockName)).toBeVisible({ timeout: 10000 }); + // Increase polling timeout to avoid flakiness under CI load await expect .poll( async () => { const docs = await listBlockDocuments(apiClient); return docs.find((d) => d.name === blockName); }, - { timeout: 10000 }, + { timeout: 30000 }, ) .toBeDefined(); }); diff --git a/ui-v2/e2e/dark-mode-contrast.spec.ts b/ui-v2/e2e/dark-mode-contrast.spec.ts index 069af119eab2..f2706393c498 100644 --- a/ui-v2/e2e/dark-mode-contrast.spec.ts +++ b/ui-v2/e2e/dark-mode-contrast.spec.ts @@ -44,7 +44,7 @@ const EXCLUDED_SELECTORS = [ const KNOWN_LIGHT_MODE_VIOLATIONS: Record = { Dashboard: 0, Flows: 0, - Runs: 4, // SCHEDULED, CRASHED, FAILED, COMPLETED badges + Runs: 5, // SCHEDULED, CRASHED, FAILED, COMPLETED badges + occasional extra under CI rendering "Work Pools": 0, Deployments: 0, }; diff --git a/ui-v2/e2e/dashboard/dashboard.spec.ts b/ui-v2/e2e/dashboard/dashboard.spec.ts index 20dad8d66bc5..ac76d74d1708 100644 --- a/ui-v2/e2e/dashboard/dashboard.spec.ts +++ b/ui-v2/e2e/dashboard/dashboard.spec.ts @@ -176,6 +176,8 @@ test.describe("Dashboard Page", () => { // --- VERIFY: URL updates with hideSubflows parameter --- await expect(page).toHaveURL(/hideSubflows=true/); + // Wait for the switch to reflect checked state before toggling again + await expect(hideSubflowsSwitch).toBeChecked(); // The dashboard should refresh and filter out subflows // This is verified by the URL param change and the component re-rendering @@ -183,9 +185,10 @@ test.describe("Dashboard Page", () => { // --- ACTION: Toggle hide subflows OFF --- await hideSubflowsSwitch.click(); - // --- VERIFY: URL no longer has hideSubflows=true --- + // --- VERIFY: Switch is unchecked and URL no longer has hideSubflows=true --- + await expect(hideSubflowsSwitch).not.toBeChecked(); // When false/default, the param should be removed or set to false - await expect(page).not.toHaveURL(/hideSubflows=true/); + await expect(page).not.toHaveURL(/hideSubflows=true/, { timeout: 10000 }); }); test("should persist date range selection in URL and filter dashboard data", async ({