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

increase windows e2e webdriver startup retries

louis0301950632fd5d6470
diff --git a/apps/screenpipe-app-tauri/e2e/wdio.conf.ts b/apps/screenpipe-app-tauri/e2e/wdio.conf.ts
index 00388db8f..d95382012 100644
--- a/apps/screenpipe-app-tauri/e2e/wdio.conf.ts
+++ b/apps/screenpipe-app-tauri/e2e/wdio.conf.ts
@@ -17,6 +17,8 @@ const shouldRecordDesktopSession =
Boolean(process.env.CI) && (process.platform === 'win32' || process.platform === 'linux');
const sessionRecorder = shouldRecordDesktopSession ? new TestRecorder() : null;
const sessionVideoDir = resolve(__dirname, 'videos', 'session');
+const isCi = Boolean(process.env.CI);
+const isWindowsCi = isCi && process.platform === 'win32';
type TestrunnerConfig = Options.Testrunner & Record<string, unknown> & {
autoCompileOpts?: {
@@ -46,9 +48,9 @@ export const config: TestrunnerConfig = {
port: WEBDRIVER_PORT,
path: '/',
logLevel: 'warn',
- waitforTimeout: process.env.CI ? 20000 : 10000,
- connectionRetryTimeout: 60000,
- connectionRetryCount: 3,
+ waitforTimeout: isCi ? 20000 : 10000,
+ connectionRetryTimeout: isWindowsCi ? 180000 : 60000,
+ connectionRetryCount: isWindowsCi ? 12 : 3,
framework: 'mocha',
reporters: getReporters() as Options.Testrunner['reporters'],
mochaOpts: { ui: 'bdd', timeout: getMochaTimeout() },