test: limit browser verification concurrency
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -4,6 +4,7 @@ export default defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
globalSetup: './tests/e2e/global-setup.mjs',
|
||||
fullyParallel: true,
|
||||
workers: 2,
|
||||
forbidOnly: Boolean(process.env.CI),
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
reporter: 'html',
|
||||
|
||||
@@ -24,6 +24,12 @@ test( 'Playwright seeds deterministic local fixtures once outside browser worker
|
||||
assert.doesNotMatch( spec, /wp-env|execFileSync|beforeAll/ );
|
||||
} );
|
||||
|
||||
test( 'Playwright caps read-only browser concurrency for the local WordPress stack', async () => {
|
||||
const { default: config } = await import( '../../playwright.config.mjs' );
|
||||
|
||||
assert.equal( config.workers, 2 );
|
||||
} );
|
||||
|
||||
test( 'exactly two serial mutation projects run after every read-only browser', async () => {
|
||||
const config = await readFile( 'playwright.config.mjs', 'utf8' );
|
||||
const files = await readdir( 'tests/e2e' );
|
||||
|
||||
Reference in new issue
Block a user