mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Playwright] Set better timeout defaults
This commit is contained in:
committed by
Aaro Koivukangas
parent
77e6c7f554
commit
a070df939b
@@ -4,12 +4,12 @@ export default defineConfig({
|
||||
testDir: './e2e',
|
||||
testMatch: ['**/*.spec.ts'],
|
||||
testIgnore: ['**/support/**', '**/plugins/**'],
|
||||
timeout: 60_000,
|
||||
expect: { timeout: 30_000 },
|
||||
timeout: 15_000,
|
||||
expect: { timeout: 10_000 },
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
use: {
|
||||
baseURL: 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 },
|
||||
trace: 'on-first-retry',
|
||||
testIdAttribute: 'data-cy',
|
||||
|
||||
Reference in New Issue
Block a user