You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to run my tests with Playwright where I want to allocate one worker for Chrome and another worker for Edge, but despite using different configurations for each browser in my playwright.config.js, the workers are being assigned incorrectly.
When I set workers: 2, both workers are initially assigned to run all Chrome tests in parallel, and only after the Chrome tests are completed, the workers switch to Edge and run tests in parallel for Edge.
My goal is to run both browsers (Chrome and Edge) in parallel with one worker per browser without them interfering with each other.
Here’s the approach I’ve tried:
Setting workers: 2 globally
Using projects for Chrome and Edge with testIgnore to separate tests for each browser (but it doesn't solve the issue).
I also tried adding workers: 1 to each project, but I get an error saying workers is not a valid property inside projects.
How can I configure Playwright to run Chrome and Edge tests simultaneously with one worker per browser? Any help would be greatly appreciated!
Expected behavior
My goal is to run both browsers (Chrome and Edge) in parallel with one worker per browser without them interfering with each other.
Actual behavior
both workers are initially assigned to run all Chrome tests in parallel, and only after the Chrome tests are completed, the workers switch to Edge and run tests in parallel for Edge.
Why do you care in which order the tests in the projects are executed? The projects do run in parallel by default, but it will still populate the workers with tests from a project before it starts distributing workers to the other projects (https://playwright.dev/docs/test-projects#running-sequence).
Version
1.50.0
Steps to reproduce
I’m trying to run my tests with Playwright where I want to allocate one worker for Chrome and another worker for Edge, but despite using different configurations for each browser in my playwright.config.js, the workers are being assigned incorrectly.
When I set workers: 2, both workers are initially assigned to run all Chrome tests in parallel, and only after the Chrome tests are completed, the workers switch to Edge and run tests in parallel for Edge.
My goal is to run both browsers (Chrome and Edge) in parallel with one worker per browser without them interfering with each other.
Here’s the approach I’ve tried:
Setting workers: 2 globally
Using projects for Chrome and Edge with testIgnore to separate tests for each browser (but it doesn't solve the issue).
I also tried adding workers: 1 to each project, but I get an error saying workers is not a valid property inside projects.
How can I configure Playwright to run Chrome and Edge tests simultaneously with one worker per browser? Any help would be greatly appreciated!
Expected behavior
My goal is to run both browsers (Chrome and Edge) in parallel with one worker per browser without them interfering with each other.
Actual behavior
both workers are initially assigned to run all Chrome tests in parallel, and only after the Chrome tests are completed, the workers switch to Edge and run tests in parallel for Edge.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: