2022-07-19 14:12:51 +02:00
|
|
|
import { devices, type PlaywrightTestConfig } from '@playwright/test'
|
|
|
|
|
|
|
|
const config: PlaywrightTestConfig = {
|
|
|
|
use: {
|
|
|
|
video: 'retain-on-failure',
|
2024-08-23 14:27:17 +02:00
|
|
|
baseURL: 'http://localhost:3000',
|
2024-08-27 00:22:41 +02:00
|
|
|
actionTimeout: 30_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-25 22:20:46 +02:00
|
|
|
timeout: 30_000,
|
2024-08-27 11:45:43 +02:00
|
|
|
retries: 2,
|
2022-07-19 21:55:05 +02:00
|
|
|
|
2022-07-19 14:12:51 +02:00
|
|
|
webServer: {
|
2024-08-27 10:56:21 +02:00
|
|
|
command: 'pnpm run docker:up',
|
2024-08-23 14:27:17 +02:00
|
|
|
port: 3000,
|
2022-07-19 14:12:51 +02:00
|
|
|
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'] } },
|
2022-07-19 14:12:51 +02:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
export default config
|