mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-10-15 05:26:25 +02:00
30 lines
669 B
TypeScript
30 lines
669 B
TypeScript
import { devices, type PlaywrightTestConfig } from '@playwright/test'
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
use: {
|
|
video: 'retain-on-failure',
|
|
baseURL: 'http://localhost:3000',
|
|
actionTimeout: 30_000,
|
|
},
|
|
|
|
outputDir: './test-results',
|
|
testDir: './test',
|
|
timeout: 30_000,
|
|
fullyParallel: true,
|
|
retries: 2,
|
|
|
|
webServer: {
|
|
command: 'pnpm run docker:up',
|
|
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
|