Files
a-share-analysis/web/playwright.config.ts

37 lines
860 B
TypeScript

import { defineConfig } from '@playwright/test';
export default defineConfig({
testDir: './tests',
fullyParallel: false,
retries: 0,
reporter: 'list',
use: {
baseURL: 'http://127.0.0.1:5173',
trace: 'retain-on-failure',
},
webServer: [
{
command: 'node ../server/tools/run-test-api.mjs',
url: 'http://127.0.0.1:3000/api/v1/health',
reuseExistingServer: false,
timeout: 30_000,
},
{
command: 'env -u NO_COLOR pnpm dev',
url: 'http://127.0.0.1:5173',
reuseExistingServer: false,
timeout: 30_000,
},
],
projects: [
{
name: 'desktop-chromium',
use: { browserName: 'chromium', viewport: { width: 1440, height: 900 } },
},
{
name: 'mobile-chromium',
use: { browserName: 'chromium', viewport: { width: 390, height: 844 } },
},
],
});