[Playwright][Config] Change better values for ci

This commit is contained in:
Aaro Koivukangas
2026-08-09 01:48:41 +03:00
committed by Aaro Koivukangas
parent 91ae0f37a3
commit 90aaf3686f
+10 -2
View File
@@ -4,10 +4,18 @@ export default defineConfig({
testDir: './e2e', testDir: './e2e',
testMatch: ['**/*.spec.ts'], testMatch: ['**/*.spec.ts'],
testIgnore: ['**/support/**', '**/plugins/**'], testIgnore: ['**/support/**', '**/plugins/**'],
timeout: 15_000,
// Fail the build on CI if you accidentally left test.only in the source code.
forbidOnly: !!process.env.CI,
timeout: 30_000,
expect: { timeout: 10_000 }, expect: { timeout: 10_000 },
reporter: [['list', { printFailuresInline: true }]],
retries: process.env.CI ? 1 : 0, retries: process.env.CI ? 1 : 0,
workers: process.env.CI ? 1 : undefined, workers: process.env.CI ? 4 : undefined,
use: { use: {
baseURL: process.env.CI ? 'http://localhost:1337' : process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000', baseURL: process.env.CI ? 'http://localhost:1337' : process.env.PLAYWRIGHT_BASE_URL || 'http://localhost:3000',
viewport: { width: 1920, height: 1080 }, viewport: { width: 1920, height: 1080 },