Your First Playwright Run
Running Playwright tests with Currents Dashboard
Last updated
Running Playwright tests with Currents Dashboard
Last updated
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.
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/playwright
npm package
Enable traces, videos and screenshots in playwright.config.js|ts
to enhance the dashboard test results
Run the tests using pwc
CLI command or by configuring an extra reporter
There are two ways to integrate Currents to your Playwright project. You can use our CLI, or integrate using reporter configuration.
@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 - use the Record Key, and Project ID obtained in the previous step.
Explore @currents/playwright npm package documentation for configuration options.
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.
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:
Learn more about our platform features - setup the CI environment, integrations, coverage reports, classify and manage your tests with Playwright tags, add metadata using annotoations and much more.
Setup CI
Speed Up CI
Playwright Tags
Playwright Annotations
Coverage Reports
Integrations
Test Status
Insights and Analytics
Run Details