Can’t run because you’ve entered an invalid browser name
Can't run because you've entered an invalid browser name.
Browser: Replay Chromium was not found on your system or is not supported by Cypress.
Cypress supports the following browsers:
- electron
- chrome
- chromium
- chrome:canary
- edge
- firefox
You can also use a custom browser: <https://on.cypress.io/customize-browsers>
Available browsers found on your system are:
- chrome
- chromium
- firefox
- firefox:dev
- firefox:nightly
- electron
- Replay Firefox
cypress.config.js, make sure you’re returning the config object in setupNodeEventsreplay-chromium is only supported on linux, whereas replay-firefox supports both mac and linux.CYPRESS_INSTALL_BINARY may be suppressing the browser install step. If it’s set to 0, make sure to add an explicit workflow step to install the browsers (npx @replayio/cypress install)actions/cacheReplay works best with Cypress 10.9 or later but can be used with Cypress 8 or later with some additional environment configuration:
RECORD_ALL_CONTENT must be set when using replay-firefox to record replaysRECORD_REPLAY_METADATA_FILE must be set for either browser to capture metadata about the test run.When running locally, you can set these variables in your npm scripts so they are set every time:
"scripts": {
"test:cypress": "cypress run",
"test:cypress:replay": "RECORD_ALL_CONTENT=1 RECORD_REPLAY_METADATA_FILE=/tmp/replay-metadata cypress run"
}
On CI, you can set these environment variables on the task that runs your tests:
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v5
with:
browser: replay-chromium
env:
RECORD_ALL_CONTENT: 1
RECORD_REPLAY_METADATA_FILE: /tmp/replay-metadata
The Replay browser is compiled against OpenSSL 1.1 which has been deprecated and is not included on some more recent platforms. To manually install it, run the following: