fix(tests): force a new worker for channels.spec (#6616)
It has some global-state expectations that do not play nicely with reusing Browser between test files.
This commit is contained in:
parent
c23a06c96e
commit
68a15fc04b
|
|
@ -18,6 +18,10 @@
|
||||||
import domain from 'domain';
|
import domain from 'domain';
|
||||||
import { playwrightTest as it, expect } from './config/browserTest';
|
import { playwrightTest as it, expect } from './config/browserTest';
|
||||||
|
|
||||||
|
// Use something worker-scoped (e.g. launch args) to force a new worker for this file.
|
||||||
|
// Otherwise, a browser launched for other tests in this worker will affect the expectations.
|
||||||
|
it.use({ args: [] });
|
||||||
|
|
||||||
it('should scope context handles', async ({browserType, browserOptions, server}) => {
|
it('should scope context handles', async ({browserType, browserOptions, server}) => {
|
||||||
const browser = await browserType.launch(browserOptions);
|
const browser = await browserType.launch(browserOptions);
|
||||||
const GOLDEN_PRECONDITION = {
|
const GOLDEN_PRECONDITION = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue