Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

test(e2e): wait for dashboard mode after canvas reload

Louis Beaumonteef724f07c4a
diff --git a/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts
index ef9e18edb..0d5579d0f 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/brain-overview.spec.ts
@@ -967,7 +967,9 @@ Refresh the assigned Live View output targets from source-backed activity.
expect(await $("[data-testid^='canvas-arrow-']").isExisting()).toBe(true);
await setCssWindowSize(1440, 900);
- await $("[data-testid='overview-mode-dashboard']").click();
+ const dashboardMode = await $("[data-testid='overview-mode-dashboard']");
+ await dashboardMode.waitForEnabled({ timeout: t(15_000) });
+ await dashboardMode.click();
await waitForTestId("brain-overview-grid", 10_000);
await $("[data-testid='overview-edit']").click();