25 lines
557 B
JavaScript
25 lines
557 B
JavaScript
|
|
const { devices } = require('@playwright/test');
|
||
|
|
|
||
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
||
|
|
const config = {
|
||
|
|
testDir: './scripts',
|
||
|
|
timeout: 30000,
|
||
|
|
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',
|
||
|
|
},
|
||
|
|
projects: [
|
||
|
|
{
|
||
|
|
name: 'chromium',
|
||
|
|
use: { ...devices['Desktop Chrome'] },
|
||
|
|
},
|
||
|
|
],
|
||
|
|
};
|
||
|
|
|
||
|
|
module.exports = config;
|