Your First Playwright Run
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. Automate your team's workflows using REST API, WebHooks and built-in integration with Slack, GitHub, and more.
Overview
Here's an overview of what steps you'll need to take to start running Playwright tests using the Currents dashboard and a CI:
Create an organization and a project
Install
@currents/playwrightnpm packageEnable traces, videos and screenshots in
playwright.config.js|tsto enhance the dashboard test resultsRun the tests using
pwcCLI command or by configuring an extra reporter
Prerequisites
Create your first Playwright run
There are two ways to integrate Currents to your Playwright project. You can use our CLI, or integrate using reporter configuration.
Using the CLI
@currents/playwright provides an executable script named pwc - it runs playwright with a predefined configuration.
Run pwc to create your first Playwright run in Currents dashboard.
Set the Record Key, and Project ID obtained from Currents dashboard in the previous step.
Explore @currents/playwright npm package documentation for configuration options.
Using reporter configuration
Add @currents/playwright reporter to playwright.config.js|ts
Explicitly add the reporter to Playwright configuration:
You can also set environment variables to provide the configuration options to Currents reporter:
With the reporter configured, you can run npx playwright test to start sending the results to Currents dashboard.
Explore the Newly Created Run
If Currents reporter is set up correctly, the execution results will show on the Currents dashboard. Additionally, a link to the recorded run will also be available at the end of the execution:

Explore
Learn more about our dashboard and its features.
Last updated
Was this helpful?
