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

fix(ci): clean up enterprise E2E state

Louis Beaumont6836a013736c
diff --git a/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts b/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts
index 94f44dc16..5494a4e9e 100644
--- a/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts
+++ b/apps/screenpipe-app-tauri/e2e/specs/zz-enterprise-license-prompt.spec.ts
@@ -88,6 +88,11 @@ async function setHeartbeatStatus(status: number): Promise<void> {
}
async function clearEnterpriseMocks(): Promise<void> {
+ // A successful activation destroys the onboarding webview. Move back to the
+ // persistent Home window before invoking Tauri or touching localStorage, or
+ // cleanup runs against a dead WebDriver context and leaks enterprise mode
+ // into the remaining zz-* specs.
+ await browser.switchToWindow('home').catch(() => {});
await invokeOrThrow('complete_onboarding').catch(() => {});
await browser.execute(
(keys: string[], policyCacheKey: string) => {
@@ -102,7 +107,6 @@ async function clearEnterpriseMocks(): Promise<void> {
).catch(() => {});
await browser.pause(t(2000));
- await browser.switchToWindow('home').catch(() => {});
await closeWindow('Onboarding').catch(() => {});
}