Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: make Playwright configuration more resilient

Elijah Potterec8c8d355259
diff --git a/packages/chrome-plugin/playwright.config.ts b/packages/chrome-plugin/playwright.config.ts
index 3bf8ad799..36b0a34f1 100644
--- a/packages/chrome-plugin/playwright.config.ts
+++ b/packages/chrome-plugin/playwright.config.ts
@@ -9,7 +9,7 @@ export default defineConfig({
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
- retries: process.env.CI ? 2 : 0,
+ retries: process.env.CI ? 4 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
@@ -18,10 +18,12 @@ export default defineConfig({
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
- globalTimeout: 120000,
+ /** A half hour */
+ globalTimeout: 1800000,
webServer: {
command: 'pnpm exec http-server ./tests/pages -p 8081 -a 127.0.0.1',
url: 'http://127.0.0.1:8081',
+ reuseExistingServer: true,
stdout: 'pipe',
stderr: 'pipe',
},