Loading...
Loading...
Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis.
npx skill4agent add replayio/skills replay-playwrightnpm install --save-dev @replayio/playwright
# or
yarn add --dev @replayio/playwright
# or
pnpm add --save-dev @replayio/playwright
# or
bun add --dev @replayio/playwrightnpx replayio install.envREPLAY_API_KEY=<your_api_key>.envexport REPLAY_API_KEY=<your_api_key>set REPLAY_API_KEY=<your_api_key>playwright.config.tsimport { replayReporter, devices as replayDevices } from "@replayio/playwright";
const config: PlaywrightTestConfig = {
reporter: [
replayReporter({
apiKey: process.env.REPLAY_API_KEY,
upload: true,
}),
["line"],
],
projects: [
{
name: "replay-chromium",
use: { ...replayDevices["Replay Chromium"] },
},
],
};replayReporterupload: truereplay-chromiumreplay-chromiumnpx playwright test --project replay-chromiumupload: truenpm install --save-dev @replayio/playwrightnpx replayio installplaywright.config.tsREPLAY_API_KEYnpx playwright test --project replay-chromiumplaywright.config.tsreplayReporterdevices as replayDevices@replayio/playwrightdefineConfigprojectsreplayReporterclaude --mcp-config "{
"mcpServers": {
"replay": {
"type": "http",
"url": "https://dispatch.replay.io/nut/mcp",
"headers": {
"Authorization": "${REPLAY_API_KEY}"
}
}
}
}"