nxtgauge-admin-solid/playwright.config.ts

25 lines
592 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests/e2e',
fullyParallel: true,
reporter: [['list']],
webServer: {
command: 'npm run build && PORT=3102 npm run start',
url: 'http://127.0.0.1:3102/',
reuseExistingServer: true,
timeout: 300_000,
},
use: {
baseURL: 'http://127.0.0.1:3102',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
viewport: { width: 1440, height: 900 },
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
});