import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
testDir: './',
timeout: 30000,
expect: {
timeout: 5000,
},
use: {
baseURL: 'http://localhost:3000',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
trace: 'retain-on-failure',
},
projects: [
{
name: 'Chrome',
use: {
browserName: 'chromium',
},
},
],
// Retry failed tests to handle potential flakiness
retries: 2,
// Run tests in parallel
workers: 3,
};
export default config;