23 lines
442 B
TypeScript
23 lines
442 B
TypeScript
import { defineConfig, devices } from '@playwright/test'
|
|
|
|
const baseURL = process.env.PLAYWRIGHT_BASE_URL ?? 'http://localhost:5100'
|
|
|
|
export default defineConfig({
|
|
testDir: '.',
|
|
testMatch: /.*\.spec\.ts/,
|
|
timeout: 30_000,
|
|
retries: 1,
|
|
|
|
use: {
|
|
baseURL,
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure',
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
})
|