EternalAI/playwright.config.js

34 lines
729 B
JavaScript

const { defineConfig } = require('@playwright/test');
module.exports = defineConfig({
testDir: './e2e',
fullyParallel: false,
retries: 1,
workers: 1,
reporter: [['list'], ['html', { open: 'never' }]],
timeout: 60000,
use: {
baseURL: 'http://localhost:3001',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
actionTimeout: 15000,
navigationTimeout: 30000,
},
projects: [
{
name: 'chromium',
use: {
channel: 'chrome',
browserName: 'chromium',
viewport: { width: 1280, height: 1200 },
},
},
],
webServer: {
command: 'node server.js',
url: 'http://localhost:3001',
reuseExistingServer: true,
timeout: 15000,
},
});