Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@replayio/playwright
Advanced tools
Configuration utilities for using the Replay browsers with playwright
Plugin to record your Playwright tests with Replay.
Check out the "Recording Automated Tests Guide" to get started.
Use with action-playwright to automatically upload replays of failed tests.
npm i -D @replayio/playwright
import { PlaywrightTestConfig, devices } from "@playwright/test";
import { devices as replayDevices } from "@replayio/playwright";
const config: PlaywrightTestConfig = {
projects: [
{
name: "replay-chromium",
use: { ...replayDevices["Replay Chromium"] },
},
{
name: "firefox",
use: { ...devices["Desktop Firefox"] },
},
{
name: "chromium",
use: { ...devices["Desktop Chromium"] },
},
],
};
export default config;
--project
flag to select a project and specified Replay Browser to record.--reporter=@replayio/playwright/reporter,line
npx playwright test
--project replay-chromium
--reporter=@replayio/playwright/reporter,line
devices
- Object of configurations suitable for using with @playwright/test
. Currently only supports the "Replay Chromium"
configuration. If the configuration isn't supported on the current platform, a warning is emitted and the executablePath
will be undefined.getExecutablePath()
- Returns the path to the Replay Browser. If the current platform isn't supported, undefined
is returned.getMetadataFilePath(workerIndex: number = 0)
- Returns the path of a worker-specific metadata file keyed by the workerIndex
. The file path will be within the RECORD_REPLAY_DIRECTORY
.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/playwright
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
Configuration utilities for using the Replay browsers with playwright
The npm package @replayio/playwright receives a total of 644 weekly downloads. As such, @replayio/playwright popularity was classified as not popular.
We found that @replayio/playwright 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.