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:
Dmitry Gozman 2021-05-17 14:56:39 -07:00 committed by GitHub
parent c23a06c96e
commit 68a15fc04b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,10 @@
import domain from 'domain';
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}) => {
const browser = await browserType.launch(browserOptions);
const GOLDEN_PRECONDITION = {