2026-03-06 16:39:13 +00:00
|
|
|
import { defineConfig, devices } from '@playwright/test';
|
2026-03-06 15:39:11 +00:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
testDir: './tests',
|
|
|
|
|
timeout: 30000,
|
|
|
|
|
expect: {
|
|
|
|
|
timeout: 5000
|
|
|
|
|
},
|
|
|
|
|
fullyParallel: true,
|
|
|
|
|
forbidOnly: !!process.env.CI,
|
|
|
|
|
retries: process.env.CI ? 2 : 0,
|
|
|
|
|
workers: process.env.CI ? 1 : undefined,
|
|
|
|
|
reporter: 'html',
|
|
|
|
|
use: {
|
|
|
|
|
actionTimeout: 0,
|
|
|
|
|
baseURL: 'http://localhost:3000',
|
|
|
|
|
trace: 'on-first-retry',
|
2026-03-07 07:27:45 +00:00
|
|
|
headless: true,
|
2026-03-06 15:39:11 +00:00
|
|
|
},
|
|
|
|
|
projects: [
|
|
|
|
|
{
|
|
|
|
|
name: 'chromium',
|
|
|
|
|
use: {
|
2026-03-06 16:39:13 +00:00
|
|
|
...devices['Desktop Chrome'],
|
2026-03-07 07:27:45 +00:00
|
|
|
headless: true,
|
2026-03-06 15:39:11 +00:00
|
|
|
},
|
|
|
|
|
},
|
2026-03-07 03:56:07 +00:00
|
|
|
{
|
|
|
|
|
name: 'firefox',
|
|
|
|
|
use: {
|
|
|
|
|
...devices['Desktop Firefox'],
|
2026-03-07 07:27:45 +00:00
|
|
|
headless: true,
|
2026-03-07 03:56:07 +00:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'webkit',
|
|
|
|
|
use: {
|
|
|
|
|
...devices['Desktop Safari'],
|
2026-03-07 07:27:45 +00:00
|
|
|
headless: true,
|
2026-03-07 03:56:07 +00:00
|
|
|
},
|
|
|
|
|
},
|
2026-03-06 15:39:11 +00:00
|
|
|
],
|
|
|
|
|
});
|