logo
Welcome to Replay’s Cypress plugin documentation!
πŸ’‘
This guide assumes that you already have a Cypress 10.9+ test suite. If you’re just setting up your Cypress test suite, first follow the instructions here. If your Cypress Test Suite is below 10.9, follow the instructions here.

Installing the Replay plugin (Cypress v10.9+)

Install the @replayio/cypress package in your project:
bash
npm install @replayio/cypress -D # or yarn add @replayio/cypress --dev
Add the Replay plugin to cypress.config.js
javascript
const { defineConfig } = require('cypress'); // πŸ™‹β€β™‚οΈ Add this line to require the replay plugin const replay = require("@replayio/cypress") module.exports = defineConfig({ e2e: { setupNodeEvents(on, config) { // πŸ™‹β€β™‚οΈ Add this line to install the replay plugin replay.default(on, config); return config; }, }, });
Add this line your support file, which should be cypress/support/e2e.js for e2e tests (unless modified)
javascript
// cypress/support/e2e.js require('@replayio/cypress/support');
After the setup is complete, you can now try running your tests locally with the Replay browser:
bash
npx cypress run --browser="Replay Firefox"
🚧
Replay Chromium is only available for linux, but we hope to ship Chromium for Mac and Windows soon!
⚠️
If you run into any problems, consult our troubleshooting guide here.
Using GitHub Actions with cypress-io/github-actionUsing GitHub Actions with cypress-io/github-actionUsing Github Actions without cypress-io/github-actionUsing Github Actions without cypress-io/github-actionUsing other CI providersUsing other CI providers

Troubleshooting GuideRecording and Uploading your CI replaysCypress FAQ