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