| |
| import { defineConfig, devices } from '@playwright/test'; |
|
|
| const BASE_PORT = 6113; |
|
|
| |
| |
| |
| export default defineConfig({ |
| |
| testDir: './tests/e2e', |
|
|
| |
| |
| workers: process.env.CI ? 2 : undefined, |
|
|
| |
| timeout: 30 * 1000, |
|
|
| |
| expect: { |
| |
| timeout: 5000, |
| }, |
|
|
| |
| use: { |
| |
| baseURL: `http://localhost:${BASE_PORT}`, |
|
|
| |
| screenshot: 'only-on-failure', |
|
|
| |
| trace: 'on-first-retry', |
|
|
| |
| acceptDownloads: true, |
| }, |
|
|
| |
| |
| reporter: process.env.CI ? 'github' : 'list', |
|
|
| |
| webServer: { |
| command: `uv run aspara dashboard --port ${BASE_PORT}`, |
| port: BASE_PORT, |
| reuseExistingServer: !process.env.CI, |
| timeout: 60 * 1000, |
| }, |
|
|
| |
| projects: [ |
| { |
| name: 'chromium', |
| use: { ...devices['Desktop Chrome'] }, |
| }, |
| { |
| name: 'firefox', |
| use: { ...devices['Desktop Firefox'] }, |
| }, |
| { |
| name: 'webkit', |
| use: { ...devices['Desktop Safari'] }, |
| }, |
| ], |
| }); |
|
|