Update README, speed up tests
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
const { defineConfig } = require('@playwright/test');
|
||||
|
||||
const serial = parseInt(process.env.SLOW_MO || '0', 10) > 0 || process.argv.includes('--headed');
|
||||
|
||||
module.exports = defineConfig({
|
||||
testDir: '.',
|
||||
testMatch: '*.spec.js',
|
||||
timeout: 300_000,
|
||||
retries: 0,
|
||||
workers: serial ? 1 : 4,
|
||||
fullyParallel: !serial,
|
||||
globalSetup: './global-setup.js',
|
||||
expect: {
|
||||
timeout: 10_000,
|
||||
},
|
||||
@@ -13,7 +18,7 @@ module.exports = defineConfig({
|
||||
actionTimeout: 10_000,
|
||||
launchOptions: {
|
||||
args: ['--disable-dev-shm-usage'],
|
||||
slowMo: parseInt(process.env.SLOW_MO || '0', 10),
|
||||
serialMo: parseInt(process.env.SLOW_MO || '0', 10),
|
||||
},
|
||||
},
|
||||
webServer: {
|
||||
|
||||
Reference in New Issue
Block a user