mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 14:44:21 +01:00
29 lines
719 B
TypeScript
29 lines
719 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './src/test/e2e',
|
|
workers: 1,
|
|
use: {
|
|
trace: 'on-first-retry',
|
|
// Use headless mode in CI, non-headless locally unless specified
|
|
headless: process.env.CI === 'true' || process.env.HEADLESS === 'true',
|
|
// Add longer timeouts for CI
|
|
navigationTimeout: 30000,
|
|
actionTimeout: 15000,
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'electron',
|
|
testMatch: ['**/electron/*.spec.ts'],
|
|
use: {
|
|
...devices['Desktop Chrome'],
|
|
},
|
|
},
|
|
],
|
|
timeout: 60000, // Increase overall timeout
|
|
expect: {
|
|
timeout: 15000, // Increase expect timeout
|
|
},
|
|
reporter: [['html'], ['list']],
|
|
});
|