docs: do not recommend context for parallel execution (#6659)

This commit is contained in:
Yury Semikhatsky 2021-05-19 21:14:17 +00:00 committed by GitHub
parent 8d4e6168aa
commit e19aea736a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,8 @@ maximize what a single instance can do through multiple browser contexts.
A [BrowserContext] is an isolated incognito-alike
session within a browser instance. Browser contexts are fast and cheap to create.
Browser contexts can be used to parallelize isolated test executions.
We recommend running each test scenario in its own new Browser context, so that
the browser state is isolated between the tests.
```js
const browser = await chromium.launch();