Version
@playwright/test 1.58.2
Steps to reproduce
@playwright/test 1.58.2 (also reproducible on current main source where workerHost.ts still sets FORCE_COLOR: '1')
- Set CI no-color env in parent process, for example:
CI=1
FORCE_COLOR=0
NO_COLOR=1 (or just FORCE_COLOR=0)
- Run Playwright tests with a worker-based run:
npx playwright test --reporter=dot
- Log env in test config (or worker-side) and compare parent vs worker process values.
- Observe source behavior in worker bootstrap:
Expected behavior
Actual behavior
Environment
Если хочешь, сразу дам ещё ultra-short вариант (совсем компактный, без лишнего текста) для вставки в issue form.
Expected behavior
Playwright workers should respect user/CI color settings inherited from parent process (e.g. keep FORCE_COLOR=0 when explicitly set), or at least not override them unconditionally.
Actual behavior
Parent process starts with FORCE_COLOR=0, but Playwright worker processes are started with FORCE_COLOR=1 due to hardcoded env in workerHost.ts. This re-enables colored output in CI and can conflict with no-color setups.
Additional context
No response
Environment
- Playwright: `@playwright/test 1.58.2`
- OS: Linux CI runner
- Node.js: `v24.14.1`
- CI env: `CI=1`, `FORCE_COLOR=0`, `PLAYWRIGHT_FORCE_TTY=0` (and in some setups `NO_COLOR=1`)
- Reporter: `dot`
Version
@playwright/test 1.58.2
Steps to reproduce
@playwright/test 1.58.2(also reproducible on currentmainsource whereworkerHost.tsstill setsFORCE_COLOR: '1')CI=1FORCE_COLOR=0NO_COLOR=1(or justFORCE_COLOR=0)npx playwright test --reporter=dotworkerHost.ts#L52Expected behavior
Actual behavior
Environment
Если хочешь, сразу дам ещё ultra-short вариант (совсем компактный, без лишнего текста) для вставки в issue form.
Expected behavior
Playwright workers should respect user/CI color settings inherited from parent process (e.g. keep
FORCE_COLOR=0when explicitly set), or at least not override them unconditionally.Actual behavior
Parent process starts with
FORCE_COLOR=0, but Playwright worker processes are started withFORCE_COLOR=1due to hardcoded env inworkerHost.ts. This re-enables colored output in CI and can conflict with no-color setups.Additional context
No response
Environment