NewsArchiverV2/tests/playwright/playwright.config.js

16 lines
445 B
JavaScript

const { defineConfig } = require('@playwright/test');
module.exports = defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: process.env.CI ? [['list'], ['html']] : 'list',
use: {
baseURL: process.env.APP_URL || 'http://localhost:5000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
});