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): retry flaky spec files once on CI

Louis Beaumont18995b853533
diff --git a/apps/screenpipe-app-tauri/e2e/wdio.conf.ts b/apps/screenpipe-app-tauri/e2e/wdio.conf.ts
index d95382012..2b514be3d 100644
--- a/apps/screenpipe-app-tauri/e2e/wdio.conf.ts
+++ b/apps/screenpipe-app-tauri/e2e/wdio.conf.ts
@@ -51,6 +51,11 @@ export const config: TestrunnerConfig = {
waitforTimeout: isCi ? 20000 : 10000,
connectionRetryTimeout: isWindowsCi ? 180000 : 60000,
connectionRetryCount: isWindowsCi ? 12 : 3,
+ // CI-only: retry a whole spec file once on transient WebDriver glitches
+ // (e.g. "Session not found" on WebKit) before failing the run. Local runs
+ // skip retries so flakes surface immediately during development.
+ specFileRetries: isCi ? 1 : 0,
+ specFileRetriesDelay: 5,
framework: 'mocha',
reporters: getReporters() as Options.Testrunner['reporters'],
mochaOpts: { ui: 'bdd', timeout: getMochaTimeout() },