Skip to content

[Bug]: Message when limiting workers on a project is incorrect #35700

@alisterscott

Description

@alisterscott

Version

1.52.0

Steps to reproduce

Steps

  1. Clone https://github.com/alisterscott/pw-workers-bug
  2. npm i
  3. npx playwright test --project=firefox shows two browsers which is correct and message Running 2 tests using 2 workers which is correct ✅
  4. npx playwright test --project=chromium shows one browser which is correct but message Running 2 tests using 2 workers ❌ should be Running 2 tests using 1 worker

Expected behavior

I expect to see Running x tests using y worker(s) where y is the project worker limit, not the overall limit

Actual behavior

Running 2 tests using 2 workers when only 1 is used

Additional context

No response

Environment

System:
    OS: macOS 15.3.1
    CPU: (8) arm64 Apple M1
    Memory: 165.31 MB / 16.00 GB
  Binaries:
    Node: 19.0.0 - /usr/local/bin/node
    npm: 8.19.2 - /usr/local/bin/npm
  IDEs:
    VSCode: 1.97.2 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.52.0 => 1.52.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions