-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
35 lines (34 loc) · 999 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
35 lines (34 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e',
timeout: process.env.CI ? 60_000 : 30_000,
expect: { timeout: process.env.CI ? 15_000 : 10_000 },
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: [['list'], ['html', { open: 'never' }]],
use: {
baseURL: 'http://localhost:18080',
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
// Bypasses --env-file=.env (not needed in CI) by invoking the compiled server directly.
command: 'node dist/server/index.js',
url: 'http://localhost:18080',
reuseExistingServer: !process.env.CI,
timeout: 30_000,
env: {
PORT: '18080',
AUTH_ENABLED: 'false',
ENVIRONMENT: 'test',
AGENT_HOST: 'http://localhost:19999',
COOKIE_SIGN: 'playwright-test-secret-32-chars-min-length',
},
},
});