test: add Chrome for Testing example #1270
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Google Chrome for Testing is not part of the factory build process and it is not yet documented how to include it in a custom-built Cypress Docker image. Cypress 13.17.0, released Dec 17, 2024, and above, support this browser.
The Google Chrome browser (not Google Chrome for Testing) is currently packaged into Cypress Docker
Linux/amd64
images in the repositoriescypress/browsers
andcypress/included
.Note that neither "Chrome" nor "Chrome for Testing" are currently available for the
Linux/arm64
platform.Benefits
Adding an example for Chrome for Testing, benefits Cypress Docker users who want to test against Chrome for Testing inside Docker. The Blog announcement for Chrome for Testing cites the lack of auto update and ability to install a specific version as the main advantages of Chrome for Testing.
@puppeteer/browsers, with its download option for Chrome for Testing, conveniently allows version selection:
131.0.6778.204
131
stable
beta
dev
canary
The flexible version selection is an advantage compared to the Cypress Docker factory process which allows only a full version specification to select a Chrome version. No selection using major version or channel alias is allowed in the Cypress Docker factory process.
Change
chrome-for-testing
to the examples directory.References
Google Chrome for Testing:
Installation using
Verification
Ubuntu
24.04.1
LTS, Node.js22.12.0
LTS, Docker Desktop4.37.1
Also verified in actions/workflows/example-tests.yml.