For the complete documentation index, see llms.txt. This page is also available as Markdown.

Orchestration (v1)

Playwright Orchestration Setup Guide for Currents v1

Orchestration helps decrease the duration of Playwright tests in CI pipelines. Read our detailed guide on Playwright Parallelization that compares native sharding with orchestration.

How does it work

@currents/playwright contains a command-line executable pwc-p β€” a lightweight wrapper that implements Orchestration and runs Playwright behind the scenes.

  • it scans the testing suite

  • it establishes an orchestration session with Currents servers

  • it runs Playwright, executing spec files in the optimal order

  • the results are recorded to Currents for troubleshooting and analysis

Setup

Install @currents/playwright:

npm i @currents/playwright

Replace playwright with pwc-p:

npx pwc-p --key <record-key> --project-id <project-id> --ci-build-id <ci-build-id>

pwc-p accepts additional Playwright arguments and flags (see @currents/playwright), for example:

# Add additional playwright arguments and flags:
pwc-p --key <record-key> --project-id <id> --ci-build-id <build-id> -- --workers 2 --timeout 10000

There's no need to define shards. Remove the --shard flag β€” Currents uses all available machines automatically.

A successfully created orchestration prints an output similar to this:

Last updated

Was this helpful?