Playwright: Quick Start
Running Playwright tests with Currents Dashboard
Last updated
Was this helpful?
Running Playwright tests with Currents Dashboard
Last updated
Was this helpful?
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.
Create an organization and a project at
Install @currents/playwright
npm package
Create Currents configuration file currents.config.ts
Enable traces, videos and screenshots in playwright.config.js|ts
Run pwc
CLI command OR by configuring an extra reporter
Choose one of the following methods:
Run pwc
command
Manually add Currents reporter
pwc
commandpwc
is a lightweight command-line executable included in @currents/playwright
npm package — it runs playwright
with a predefined configuration.
pwc
reads the configuration from currents.config.ts
file. See additional configuration options Configuration.
pwc
injects Currents reporter into Playwright configuration.
You can also provide CLI configuration parameters, e.g.
npx pwc --key RECORD_KEY --project-id PROJECT_ID
You can manually add Currents reporter to playwright.config.ts
and keep using playwright test
command.
Run npx playwright test
to start sending the results to Currents dashboard.
The reporter reads the configuration from currents.config.ts
file. See @currents/playwright for more configuration options.
🎉 Hooray! As your tests run, the results are being streamed in real-time to Currents.
You can see the run details in the dashboard. A link to the recorded run will also be available at the end of the execution:
Finalize your setup — enable Currents in CI:
Get familiar with CI Build ID
Setup Currents on CI — CI Setup
Explore @currents/playwright configuration and options
Learn more about Currents:
Enable Integrations with Slack, GitHub, GitLab and more
Speed up your CI by exploring CI Optimization guides
Customize the reporting with Playwright Tags
Assign test ownership and personal notifications with Playwright Annotations
Replace your ad-hoc scripts with Actions