@currents/playwright
Setup and usage instructions for Playwright integration with Currents Dashboard
Last updated
Was this helpful?
Setup and usage instructions for Playwright integration with Currents Dashboard
Last updated
Was this helpful?
NodeJS 14.0.0+
Playwright 1.22.2+
Creating a new organization and a project at , you'll see on-screen instructions with your newly created Project ID and Record Key.
@currents/playwright
currents.config.ts
Create currents.config.(m|j|t)s
configuration file.
Set the Record Key, and Project ID obtained from Currents dashboard.
Learn more about CI Build ID.
playwright.config.js|ts
Enabled traces, videos and screenshots in playwright.config.js|ts
Choose the preferred usage method. See details below.
pwc
command-line executable.
Run pwc test
instead of playwright test
pwc
automatically configures Playwright to work with Currents
Keep Currents configuration in currents.config.ts
Manually add Currents Reporter.
Explicitly add Currents reporter to playwright.config.ts
Run playwright test
as usual
Keep Currents configuration in currents.config.ts
pwc-p
command-line executable for orchestration.
See Orchestration Setup.
pwc
command-line executablepwc
reads configuration from currents.config.ts
Run pwc
to start recording Playwright runs to Currents.
Learn more about CI Build ID.
See pwc reference documentation.
You can manually add Current sreporter to playwright.config.ts
and keep using playwright test
CLI command.
The reporter reads the configuration from currents.config.ts
file. See additional configuration options Configuration.
Run npx playwright test
to start sending the results to Currents dashboard.
Learn more about CI Build ID.
Numerous configuration options are available. See Configuration.
The package also provides additional fixtures for Playwright that support various features:
Run all tests in the current directory:
Run orchestration for all tests in the current directory:
Run only tests filtered by the tag "@smoke":
Run playwright tests and add tags "tagA", "tagB" to the recorded run:
Provide playwright
arguments and flags:
Check out the example repositories that showcase running Playwright tests on popular CI providers and recording the results to Currents:
Explore how to speed up CI Playwright runs by enabling Playwright Parallelization.
Required to enable .