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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(e2e): seed auth for onboarding setup (#6847)
Ezra Ellette7d73c7e4e251
diff --git a/apps/screenpipe-app-tauri/package.json b/apps/screenpipe-app-tauri/package.jsonindex 596a0814f..dd29223d7 100644--- a/apps/screenpipe-app-tauri/package.json+++ b/apps/screenpipe-app-tauri/package.json@@ -48,7 +48,7 @@"test:e2e:first-run-learning-window": "SCREENPIPE_E2E_SEED=onboarding,no-recording SCREENPIPE_PORT=3048 bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/first-run-learning-window.spec.ts","test:e2e:onboarding-first-run": "SCREENPIPE_E2E_SEED=no-recording SCREENPIPE_PORT=3047 bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/onboarding-first-run.spec.ts","test:e2e:onboarding-h1-follow-up": "SCREENPIPE_E2E_SEED=onboarding,no-recording SCREENPIPE_PORT=3046 bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/onboarding-h1-follow-up.spec.ts",- "test:e2e:onboarding-background-ai-tools": "SCREENPIPE_E2E_SEED=no-recording,background-ai-tools SCREENPIPE_PORT=3045 bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/onboarding-background-ai-tools.spec.ts",+ "test:e2e:onboarding-background-ai-tools": "SCREENPIPE_E2E_SEED=no-recording,background-ai-tools,cloud-authenticated SCREENPIPE_PORT=3045 bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/onboarding-background-ai-tools.spec.ts","test:e2e:screen-recording-restart:macos": "SCREENPIPE_E2E_SEED=onboarding,no-recording bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/screen-recording-restart.spec.ts","test:e2e:hd:macos": "SCREENPIPE_E2E_SEED=onboarding bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/hd-recording-pipeline.spec.ts","test:e2e:hd-duration-recovery:macos": "SCREENPIPE_E2E_SEED=onboarding,no-audio,hd-writer-stall-once bun run wdio run e2e/wdio.conf.ts --spec e2e/specs/hd-recording-pipeline.spec.ts",diff --git a/apps/screenpipe-app-tauri/src-tauri/src/e2e/seeds.rs b/apps/screenpipe-app-tauri/src-tauri/src/e2e/seeds.rsindex 3e9d7f4e4..b4a13e0fc 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/e2e/seeds.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/e2e/seeds.rs@@ -59,6 +59,12 @@ pub(crate) fn apply_settings(app: &AppHandle, store: &mut SettingsStore) {// "no-audio" keeps vision enabled while disabling only audio, which// lets Windows hosted runners exercise OCR without booting Whisper.let e2e_flags = flags();+ if e2e_flags.iter().any(|f| f == "cloud-authenticated") {+ let token = "e2e-fake-token-onboarding-background-ai-tools".to_string();+ store.user.token = Some(token.clone());+ crate::auth_token::seed_cloud_token(Some(token));+ info!("E2E seed: synthetic cloud authentication enabled");+ }if e2e_flags.iter().any(|f| f == "no-recording") {store.recording.disable_audio = true;store.recording.disable_vision = true;