Skip to content

fix(@angular/build): allow any CHROME_BIN for vitest playwright provider#32699

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:executablePath
Mar 5, 2026
Merged

fix(@angular/build): allow any CHROME_BIN for vitest playwright provider#32699
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:executablePath

Conversation

@alan-agius4
Copy link
Collaborator

The Playwright browser provider in Vitest now uses the CHROME_BIN environment variable as the executable path if it's set, removing the restriction that it must contain 'rules_browsers'.

This is useful in CI environments to ensure a specific browser binary is used for testing in CI.

Closes #32697

…vider

The Playwright browser provider in Vitest now uses the `CHROME_BIN` environment variable as the executable path if it's set, removing the restriction that it must contain 'rules_browsers'.

This is useful in CI environments to ensure a specific browser binary is used for testing in CI.

Closes angular#32697
@alan-agius4 alan-agius4 requested a review from clydin March 5, 2026 10:08
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Mar 5, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the logic for configuring the Playwright browser provider in Vitest by removing the rules_browsers restriction on CHROME_BIN. The change is well-implemented and makes the code cleaner. My only feedback is to add unit tests to cover this new behavior to prevent future regressions.

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 5, 2026
@alan-agius4 alan-agius4 merged commit f190263 into angular:main Mar 5, 2026
39 checks passed
@alan-agius4 alan-agius4 deleted the executablePath branch March 5, 2026 19:19
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

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

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CHROME_BIN environment variable doesn't work for Vitest runner on build:unit-test

2 participants