mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-10-31 20:34:12 +01:00
33 lines
914 B
TypeScript
33 lines
914 B
TypeScript
import { devices, type PlaywrightTestConfig } from '@playwright/test'
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
use: {
|
|
video: 'retain-on-failure',
|
|
baseURL: 'http://localhost:3000',
|
|
actionTimeout: 10_000,
|
|
},
|
|
|
|
outputDir: './test-results',
|
|
testDir: './test',
|
|
timeout: 10_000,
|
|
fullyParallel: true,
|
|
|
|
webServer: {
|
|
command: 'docker compose -f docker-compose.dev.yaml up',
|
|
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
|