cryptgeon/playwright.config.ts

33 lines
914 B
TypeScript
Raw Normal View History

import { devices, type PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
use: {
video: 'retain-on-failure',
2024-08-23 14:27:17 +02:00
baseURL: 'http://localhost:3000',
2024-08-23 11:02:30 +02:00
actionTimeout: 10_000,
},
outputDir: './test-results',
testDir: './test',
2024-08-23 11:02:30 +02:00
timeout: 10_000,
fullyParallel: true,
webServer: {
2022-11-14 15:47:12 +01:00
command: 'docker compose -f docker-compose.dev.yaml up',
2024-08-23 14:27:17 +02:00
port: 3000,
reuseExistingServer: true,
},
projects: [
{ name: 'chrome', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'safari', use: { ...devices['Desktop Safari'] } },
{ name: 'cli', use: { ...devices['Desktop Chrome'] }, grep: [/@cli/] },
{ name: 'web', use: { ...devices['Desktop Chrome'] }, grep: [/@web/] },
{ name: 'cross', use: { ...devices['Desktop Chrome'] }, grep: [/@cross/] },
],
}
export default config