| import { defineConfig, devices } from '@playwright/test' |
|
|
| |
| |
| |
| const PORT = process.env.D2_E2E_PORT || '8000' |
| const ORIGIN = `http://localhost:${PORT}` |
|
|
| export default defineConfig({ |
| testDir: './e2e', |
| testMatch: 'd2-identity.spec.ts', |
| fullyParallel: false, |
| workers: 1, |
| timeout: 60_000, |
| reporter: [['list'], ['html', { open: 'never', outputFolder: 'playwright-report-d2' }]], |
| use: { |
| baseURL: ORIGIN, |
| trace: 'retain-on-failure', |
| }, |
| projects: [ |
| { name: 'chromium-desktop', use: { ...devices['Desktop Chrome'] } }, |
| { name: 'chromium-mobile', use: { ...devices['Pixel 5'] } }, |
| ], |
| |
| |
| |
| webServer: { |
| command: 'bash e2e/d2-serve.sh', |
| url: `${ORIGIN}/healthz`, |
| timeout: 180_000, |
| reuseExistingServer: true, |
| stdout: 'pipe', |
| stderr: 'pipe', |
| }, |
| }) |
|
|