cryptgeon/playwright.config.ts

26 lines
657 B
TypeScript
Raw Normal View History

2022-07-19 12:41:42 +02:00
import { devices, type PlaywrightTestConfig } from '@playwright/test'
2022-07-19 11:57:39 +02:00
const config: PlaywrightTestConfig = {
use: {
2022-07-19 12:41:42 +02:00
video: 'retain-on-failure',
2022-07-19 11:57:39 +02:00
baseURL: 'http://localhost:1234',
2022-07-19 12:41:42 +02:00
// actionTimeout: 10_000,
2022-07-19 11:57:39 +02:00
},
2022-07-19 12:41:42 +02:00
outputDir: './test-results',
2022-07-19 11:57:39 +02:00
testDir: './test',
testMatch: /.*\.ts/,
webServer: {
2022-07-19 12:41:42 +02:00
command: 'pnpm run ci:server',
2022-07-19 11:57:39 +02:00
port: 1234,
reuseExistingServer: true,
2022-07-19 12:41:42 +02:00
timeout: 20_000,
2022-07-19 11:57:39 +02:00
},
2022-07-19 12:41:42 +02:00
projects: [
{ name: 'Chrome', use: { ...devices['Desktop Chrome'] } },
{ name: 'Firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'Safari', use: { ...devices['Desktop Safari'] } },
],
2022-07-19 11:57:39 +02:00
}
export default config