
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@replayio/cypress
Advanced tools
@replayio/cypress
Plugin to record your Cypress tests with Replay
Check out the "Recording Automated Tests Guide" to get started.
Use with action-cypress to automatically upload replays of failed tests.
npm i @replayio/cypress
The Replay adapter for cypress requires two updates: one to your cypress.config.js
and one to your support file in cypress/e2e/support.js
.
// cypress.config.js
import { defineConfig } from "cypress";
import cypressReplay, { wrapOn } from "@replayio/cypress";
module.exports = defineConfig({
e2e: {
setupNodeEvents(cyOn, config) {
const on = wrapOn(cyOn);
// Adds replay-chromium browsers
// and hooks into Cypress lifecycle methods to capture test
// metadata and results
cypressReplay(on, config);
return config;
},
},
});
// cypress/e2e/support.js
import "@replayio/cypress/support";
--browser
flag to select the Replay Chromium to recordRECORD_REPLAY_METADATA_FILE
to an accessible file path.CYPRESS_NO_COMMAND_LOG
.RECORD_REPLAY_METADATA_FILE=$(mktemp) \
npx cypress run --browser replay-chromium
If you have a large test suite, you might choose to split your test suite up and run them in parallel across multiple machines but still treat them as a single suite. By default, @replayio/cypress
will generate a UUID for the suite and store it in the recording metadata under test.run.id
but in this case each machine will have its own id.
In order to link these independently ran tests together, you can generate your own UUID and set it in the RECORD_REPLAY_TEST_RUN_ID
environment variable and it will be used instead of generating a value.
FAQs
Plugin to record your Cypress tests with Replay
The npm package @replayio/cypress receives a total of 512 weekly downloads. As such, @replayio/cypress popularity was classified as not popular.
We found that @replayio/cypress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.