26 lines
534 B
TypeScript
26 lines
534 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests',
|
|
timeout: 30_000,
|
|
expect: {
|
|
timeout: 5_000,
|
|
},
|
|
use: {
|
|
baseURL: 'http://127.0.0.1:4321',
|
|
trace: 'on-first-retry',
|
|
},
|
|
webServer: {
|
|
command: 'npm run preview -- --host 127.0.0.1 --port 4321',
|
|
url: 'http://127.0.0.1:4321',
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 60_000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
});
|