-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
30 lines (29 loc) · 748 Bytes
/
Copy pathplaywright.config.ts
File metadata and controls
30 lines (29 loc) · 748 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
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './test/e2e',
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 1 : 0,
workers: 1,
reporter: 'list',
globalSetup: './test/e2e/global-setup.ts',
globalTeardown: './test/e2e/global-teardown.ts',
timeout: 60000,
use: {
baseURL: 'http://localhost:5173',
trace: 'on-first-retry',
storageState: 'test/e2e/.auth/user.json',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], locale: 'pt-BR' },
},
],
webServer: {
command: 'pnpm run dev',
url: 'http://localhost:5173',
timeout: 120000,
reuseExistingServer: !process.env.CI,
},
});