helpyourneighbour/backend/playwright.config.mjs
OpenClaw 7b42e35ed3
Some checks are pending
Docker Test / test (push) Waiting to run
fix: adjust Playwright configuration for headless mode to resolve dependency issues
2026-03-07 09:25:56 +00:00

45 lines
No EOL
894 B
JavaScript

import { defineConfig, devices } from '@playwright/test';
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',
headless: true,
viewport: { width: 1280, height: 720 },
},
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
headless: true,
channel: 'chrome',
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
headless: true,
},
},
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
headless: true,
},
},
],
});