-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
33 lines (31 loc) · 896 Bytes
/
playwright.config.ts
File metadata and controls
33 lines (31 loc) · 896 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
import { defineConfig, devices } from '@playwright/test'
const isCI = !!process.env.CI
const webServerUrl = isCI ? 'http://localhost:5173' : 'https://localhost:5173'
export default defineConfig({
testDir: './e2e',
fullyParallel: true,
forbidOnly: isCI,
retries: isCI ? 1 : 1, // Retry once due to testnet flakiness
workers: isCI ? 4 : undefined,
timeout: 180000, // 3 min default timeout for testnet transactions
reporter: 'html',
use: {
baseURL: webServerUrl,
ignoreHTTPSErrors: true,
trace: 'on-first-retry',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: isCI ? 'VITE_E2E=true VITE_USE_HTTP=true pnpm run dev' : 'pnpm run dev 2>/dev/null',
url: webServerUrl,
ignoreHTTPSErrors: true,
reuseExistingServer: !isCI,
stdout: 'ignore',
stderr: 'ignore',
},
})