Record your first replay
Recording your test with the Replay browser is as simple as installing a Cypress plugin. This doc shows how you can record your first test in under two minutes.
Install the Cypress Plugin
Install the Cypress plugin in your project:
Terminal
npm install @replayio/cypress -D
Integrate The Plugin To Your Project
Simply add the Replay plugin to your project configuration and support files.
cypress/support/e2e.js
require('@replayio/cypress/support')
cypress.config.js
1const { defineConfig } = require('cypress')2const { plugin: replayPlugin } = require('@replayio/cypress')34module.exports = defineConfig({5 e2e: {6 setupNodeEvents(on, config) {7 replayPlugin(on, config, {8 upload: true, // automatically upload your replays do DevTools9 apiKey: process.env.REPLAY_API_KEY,10 })11 return config12 },13 },14})
Generate and save your API key
In order to automatically upload your test replays you need to save an API key in your environment. To generate an API key, log in to Replay App open the settings menu. Read more.
Run Your Test With Replay Browser
With everything set up, you can now run your test locally:
Terminal
npx cypress run --browser replay-chromium
After your test finishes it will generate a link to Replay DevTools where you can inspect your test run.
Done!
You’re ready to inspect your local test run in Replay DevTools now. You can also record your tests in your CI environment. Learn how to set up Replay with your Cypress tests on GitHub Actions and other CI providers.
Learn how to record your tests, manage your test suite and debug flaky tests using Replay DevTools
Record Your CI Test Run
Learn how to integrate Replay into your Continuous integration service
Replay DevTools
Learn how to use Replay DevTools to debug your tests.
Test Suite Management
Test Suite Dashboard helps you stay on top of your test suite health.
Debugging tips
Learn about how to effectively debug flaky or failing tests