Quick Start
Running Playwright tests with Currents Dashboard
Connect Playwright to Currents in a few minutes and start seeing runs, screenshots, videos, and traces in one place. This guide keeps the setup minimal so you can go from "tests run locally" to "results show up in Currents" without extra ceremony.
Prerequisites
An account - sign up for a free trial.
NodeJS v18.17.0+
Playwright v1.40.1+ works well.
If you're using Playwright v1.60.0+ you'll require
@currents/playwright2.0.0+, see Compatibility Guide.
Setup Currents
Create a Project
After you sign up, Currents asks you to name your organization and answer a few questions about your team. Then create your first project: the name is taken from your organization name, and you can change both later. Click Create project and show me the setup.

The setup page opens on Local Setup. Select Playwright as the testing framework. Project Credentials shows your Project ID and Record Key. Keep that page open for the next steps.
Create currents.config.ts
Create currents.config.ts next to playwright.config.ts, usually in the project root. If your Playwright config uses .js or .mjs, use that same extension for currents.config, and remove the type import and the !.
import { CurrentsConfig } from "@currents/playwright";
const config: CurrentsConfig = {
recordKey: process.env.CURRENTS_RECORD_KEY!,
projectId: process.env.CURRENTS_PROJECT_ID!,
};
export default config;Set CURRENTS_PROJECT_ID and CURRENTS_RECORD_KEY to the values from Currents. Keep the Record Key out of files you commit.
Enable artifacts
Update playwright.config.ts so every recorded run includes traces, videos, and screenshots.
use: {
// ...
trace: "retain-on-failure-and-retries",
video: "retain-on-failure",
screenshot: "on",
}These artifacts are what make the dashboard useful from the first run, so it is worth enabling all three up front.
Create your first run
After setup, run Playwright and watch results get streamed in real-time to Currents. Here's the command for the same:
CURRENTS_PROJECT_ID=<project-id> CURRENTS_RECORD_KEY=<record-key> npx playwright testA link to the recorded run will be available at the start of the execution:
Open the link to see the run in the dashboard.
No run link, or the run doesn't show up? See Missing Runs.
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?