Skip to content

Accept browser names in any case - #4921

Merged
soulgalore merged 1 commit into
mainfrom
browser-name-case
Oct 25, 2026
Merged

soulgalore merged 1 commit into
mainfrom
browser-name-case

Conversation

@soulgalore

Copy link
Copy Markdown
Member

-b Chrome was passed straight to browsertime and failed later with a confusing error. Browser names are now lowercased, so Chrome, FireFox or EDGE just work. A name that isn't a supported browser (a typo like "chorme") now gets a clear error listing the valid choices.

yargs choices and coerce only apply to top-level options, so neither reached browsertime.browser, the value browsertime reads. That is why the choices list in --help was never enforced.

Fixes #3819

Assisted-by: Claude Opus 5.5 noreply@anthropic.com

-b Chrome was passed straight to browsertime and failed later with a confusing error. Browser names are now lowercased, so Chrome, FireFox or EDGE just work. A name that isn't a supported browser (a typo like "chorme") now gets a clear error listing the valid choices.

yargs choices and coerce only apply to top-level options, so neither reached browsertime.browser, the value browsertime reads. That is why the choices list in --help was never enforced.

Fixes #3819

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
@soulgalore
soulgalore merged commit 3cddc23 into main Oct 25, 2026
20 checks passed
@soulgalore
soulgalore deleted the browser-name-case branch October 25, 2026 20:50
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.

Specifying browser name with capital letter create failures

1 participant