This commit is contained in:
2022-07-19 12:41:42 +02:00
parent c7088a8b43
commit ce07ca8b0d
6 changed files with 23 additions and 7 deletions

View File

@@ -1,18 +1,25 @@
import type { PlaywrightTestConfig } from '@playwright/test'
import { devices, type PlaywrightTestConfig } from '@playwright/test'
const config: PlaywrightTestConfig = {
use: {
video: 'on-first-retry',
video: 'retain-on-failure',
baseURL: 'http://localhost:1234',
actionTimeout: 3_000,
// actionTimeout: 10_000,
},
outputDir: './test-results',
testDir: './test',
testMatch: /.*\.ts/,
webServer: {
command: 'pnpm run dev',
command: 'pnpm run ci:server',
port: 1234,
reuseExistingServer: true,
timeout: 20_000,
},
projects: [
{ name: 'Chrome', use: { ...devices['Desktop Chrome'] } },
{ name: 'Firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'Safari', use: { ...devices['Desktop Safari'] } },
],
}
export default config