18 lines
350 B
TypeScript
18 lines
350 B
TypeScript
|
|
import { defineConfig } from '@playwright/test';
|
||
|
|
|
||
|
|
const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? 'http://127.0.0.1:1337';
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
testDir: './e2e',
|
||
|
|
timeout: 120_000,
|
||
|
|
expect: {
|
||
|
|
timeout: 10_000,
|
||
|
|
},
|
||
|
|
retries: process.env.CI ? 1 : 0,
|
||
|
|
use: {
|
||
|
|
baseURL,
|
||
|
|
headless: true,
|
||
|
|
trace: 'on-first-retry',
|
||
|
|
},
|
||
|
|
});
|