원클릭으로
replay-playwright
Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | replay-playwright |
| description | Set up and run Playwright tests with Replay Browser to record test executions for debugging and performance analysis. |
| allowed-tools | Bash(npx:*), Bash(npm:*), Bash(yarn:*), Bash(pnpm:*), Bash(bun:*), mcp__replay |
Description: Use when the user wants to set up Replay for Playwright tests, configure the Replay Playwright plugin, or run Playwright tests with the Replay Browser. Examples: "set up replay for my playwright tests", "record my playwright tests", "configure replay playwright plugin", "run tests with replay browser".
Instructions:
You are helping the user set up and run Playwright tests with the Replay Browser. Here is the complete reference:
npm install --save-dev @replayio/playwright
# or
yarn add --dev @replayio/playwright
# or
pnpm add --save-dev @replayio/playwright
# or
bun add --dev @replayio/playwright
npx replayio install
Create a Test Suite Team at https://app.replay.io/team/new/tests to generate an API key.
Store the API key using one of these methods:
.env file (recommended): Add REPLAY_API_KEY=<your_api_key> to your .env file and use the dotenv package to load it.export REPLAY_API_KEY=<your_api_key>set REPLAY_API_KEY=<your_api_key>Update playwright.config.ts to use the Replay reporter and Replay Chromium browser:
import { 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"] },
},
],
};
Key configuration details:
replayReporter handles uploading recordings after test runsupload: true automatically uploads recordings when tests finishreplay-chromium project uses the Replay Browser to capture recordingsreplay-chromium for regular test runsRun Playwright tests with the Replay Browser:
npx playwright test --project replay-chromium
Recordings are automatically uploaded when upload: true is set in the reporter config.
Set up Replay for an existing Playwright project:
npm install --save-dev @replayio/playwrightnpx replayio installplaywright.config.ts with the Replay reporter and projectREPLAY_API_KEY environment variablenpx playwright test --project replay-chromiumWhen modifying the user's playwright.config.ts:
replayReporter and devices as replayDevices from @replayio/playwrightdefineConfig, add the Replay project to the existing projects arrayreplayReporter to the existing arrayRun Replay MCP Server to debug your recored application to install the MCP server in Claude, run the following command:
claude --mcp-config "{
"mcpServers": {
"replay": {
"type": "http",
"url": "https://dispatch.replay.io/nut/mcp",
"headers": {
"Authorization": "${REPLAY_API_KEY}"
}
}
}
}"