cryptgeon/playwright.config.ts

31 lines
735 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 21:36:56 +02:00
actionTimeout: 60_000,
2022-07-19 11:57:39 +02:00
},
2022-07-19 21:36:56 +02:00
2022-07-19 12:41:42 +02:00
outputDir: './test-results',
2022-07-19 11:57:39 +02:00
testDir: './test',
2022-07-19 21:36:56 +02:00
2022-07-19 11:57:39 +02:00
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
projects: [
2022-07-19 21:36:56 +02:00
{ name: 'chrome', use: { ...devices['Desktop Chrome'] } },
{ name: 'firefox', use: { ...devices['Desktop Firefox'] } },
{ name: 'safari', use: { ...devices['Desktop Safari'] } },
{
name: 'local',
use: { ...devices['Desktop Chrome'] },
// testMatch: 'file/too-big.spec.ts',
},
2022-07-19 12:41:42 +02:00
],
2022-07-19 11:57:39 +02:00
}
export default config