Quick Start
Running Playwright tests with Currents Dashboard
Integrate Currents with Playwright to enable recording test results together with screenshots, videos, and traces, unlocking more effective troubleshooting, analytics and proactive monitoring.
Prerequisites
An account β sign up for a free trial.
NodeJS v14.0.0+
Playwright v1.22.2+
Setup Currents
Create currents.config.ts
Create currents.config.ts ( or .mjs / .js ) next to the playwright.config.ts file (usually in your root folder).
import { CurrentsConfig } from "@currents/playwright";
const config: CurrentsConfig = {
recordKey: process.env.CURRENTS_RECORD_KEY || "your-record-key",
projectId: process.env.CURRENTS_PROJECT_ID || "currents-project-id"
};
export default config;Create your first run
After setting up Currents, run Plawyright to start seeing the results being streamed in real-time to Currents.
A link to the recorded run will be available at the start of the execution:
> npx pwc --key XXX --project-id YYY
π¦ Currents reporter: 1.12.0 recording to project WlKqJ0
π Playwright: 1.52.0 5 tests in 1 project [chromium]
π¨ CI Build ID: auto:tzwgltasm
π Run URL: https://app.currents.dev/run/cfc7ab8fcaaz10157
================================================================Open the link to see the run details in the dashboard π

Ran into any errors? Check out our Troubleshooting guide.
Next Step
Once your Playwright project is set up and reporting locally, configure your CI pipeline.
Running tests in CI is where you get consistent, repeatable feedback on every pull request and deployment, not just on your local machine.
CI SetupLast updated
Was this helpful?
