mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Playwright][Config] Change better values for ci
This commit is contained in:
committed by
Aaro Koivukangas
parent
91ae0f37a3
commit
90aaf3686f
+10
-2
@@ -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 },
|
||||||
|
|||||||
Reference in New Issue
Block a user