With Replay, you can record automated test with Playwright and Puppeteer to generate replays. These are super helpful for debugging failed tests because the replay captures the entire browser session with no need to reproduce the failure.
There is also an experimental version of Replay for Cypress. Check out the repository here for more details.
Check out our guides for Playwright and Puppeteer below.Recording Playwright (beta)Recording Puppeteer (beta)Recording Jest
After you've recorded a test using the instructions above, you will need to use the Replay CLI to upload and view replays. If you’re recording with Playwright, you can use our GitHub Action to upload failure replays automatically.
An API key is required to view and upload recorded replays. Personal API keys are limited to 10 recordings, but you can record more by setting up a team.
You can upload a recording with the
npx @replayio/replaycommand. The most common usage is to run
view-latestto upload and view the most recent replay.
RECORD_REPLAY_API_KEY=123 npx @replayio/replay view-latest
You can also upload individual replays with the CLI as well. The
lscommand lists the recordings so you can identify the
idneeded to pass to the
npx @replayio/replay ls npx @replayio/replay upload <id>
Once uploaded, you can view and share the replay like you normally would.
It is a good idea to clear recordings on your local disk periodically once uploaded.