cryptgeon/playwright.config.ts

30 lines
669 B
TypeScript
Raw Normal View History

import { devices, type PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
use: {
video: 'retain-on-failure',
2024-08-23 12:27:17 +00:00
baseURL: 'http://localhost:3000',
2024-08-26 22:22:41 +00:00
actionTimeout: 30_000,
},
outputDir: './test-results',
testDir: './test',
2024-08-25 20:20:46 +00:00
timeout: 30_000,
2024-08-27 11:26:04 +00:00
fullyParallel: true,
2024-08-27 09:45:43 +00:00
retries: 2,
webServer: {
2024-08-27 08:56:21 +00:00
command: 'pnpm run docker:up',
2024-08-23 12:27:17 +00:00
port: 3000,
reuseExistingServer: true,
},
projects: [
{ name: 'chrome', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'safari', use: { ...devices['Desktop Safari'] } },
],
}
export default config