Skip to content

Conversation

@mirao
Copy link
Contributor

@mirao mirao commented Jan 30, 2026

Playwright 1.58 changed the output format of npx playwright install --dry-run:

  • Old format: "browser: chromium version 143.0.7499.4"
  • New format: "Chrome for Testing 145.0.7632.6 (playwright chromium v1208)"

Updated the regex to handle both formats while excluding chromium-headless-shell.

Fixes #5422

I checked that the fix works well with Playwright < 1.58

mirao@rog:~/workspace/CodeceptJS/examples$ node ../bin/codecept.js info|grep playwrightbrowsers -i
playwrightBrowsers:  "chromium: 140.0.7339.186, firefox: 141.0, webkit: 26.0"

and with Playwright 1.58

mirao@rog:~/workspace/CodeceptJS/examples$ node ../bin/codecept.js info|grep playwrightbrowsers -i
playwrightBrowsers:  "chromium: 145.0.7632.6, firefox: 146.0.1, webkit: 26.0"

Applicable helpers:

  • Playwright
  • Puppeteer
  • WebDriver
  • REST
  • FileHelper
  • Appium
  • TestCafe

Applicable plugins:

  • allure
  • autoDelay
  • autoLogin
  • customLocator
  • pauseOnFail
  • coverage
  • retryFailedStep
  • screenshotOnFail
  • selenoid
  • stepByStepReport
  • stepTimeout
  • wdio
  • subtitles

Type of change

  • 🔥 Breaking changes
  • 🚀 New functionality
  • 🐛 Bug fix
  • 🧹 Chore
  • 📋 Documentation changes/updates
  • ♨️ Hot fix
  • 🔨 Markdown files fix - not related to source code
  • 💅 Polish code

Checklist:

  • Tests have been added
  • Documentation has been added (Run npm run docs)
  • Lint checking (Run npm run lint)
  • Local tests are passed (Run npm test)

Playwright 1.58 changed the output format of `npx playwright install --dry-run`:
- Old format: "browser: chromium version 143.0.7499.4"
- New format: "Chrome for Testing 145.0.7632.6 (playwright chromium v1208)"

Updated the regex to handle both formats while excluding chromium-headless-shell.

Fixes codeceptjs#5422

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@DenysKuchma
Copy link
Collaborator

@mirao
Thanks for the fix! The changes look good.
If you have time, it would be great to add unit tests for the regex to ensure both old and new Playwright formats are covered.

@mirao
Copy link
Contributor Author

mirao commented Feb 2, 2026

@DenysKuchma Good idea. It was a Claude Opus 4.5 job, so I guess it won't be issue to create tests for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codeceptjs info: Empty string in "playwrightBrowsers" since Playwright 1.58

2 participants