Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(tests): force a new worker for channels.spec (#6616)

Dmitry Gozman68a15fc04b38
diff --git a/tests/channels.spec.ts b/tests/channels.spec.ts
index 0746850d46..3b35283b51 100644
--- a/tests/channels.spec.ts
+++ b/tests/channels.spec.ts
@@ -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 = {