
Product
Microsoft Teams Notifications Are Now Available in Socket
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.
@currents/playwright
Advanced tools
Playwright integration and reporter for [Currents](https://currents.dev/playwright) - a cloud dashboard for debugging, troubleshooting and analysing parallel CI tests supporting Cypress and Playwright.
Playwright integration and reporter for Currents - a cloud dashboard for debugging, troubleshooting and analysing parallel CI tests supporting Cypress and Playwright.
npm install @currents/playwright
use: {
// ...
trace: "on",
video: "on",
screenshot: "on",
}
Choose the preferred launch method:
pwc CLI command - it runs playwright with a predefined configuration@currents/playwright reporter to Playwright configuration filepwc CLIWe need to pass three parameters to run pwc:
The command passes down all the other CLI flags to the Playwright test runner as-is. We can pass these as command line arguments, as environment variables, or a mixture of both.
pwc --project-id PROJECT_ID --key RECORD_KEY --ci-build-id hello-currents --tag tagA,tagB
pwc-p CLI (orchestration)pwc-p runs orchestrated Playwright sessions (parallel tasks coordinated via Currents). Use subcommands:
pwc-p discover — runs test discovery with the same argv passthrough as pwc (grep, last-failed, config paths, etc.) and writes the discovery output to the file set by --pwc-discovery-file, or CURRENTS_DISCOVERY_FILE, or orchestration.discoveryFile in currents.config.ts.pwc-p run — orchestrates the suite. It does not accept arbitrary Playwright filter argv passthrough.Supported Playwright flags on pwc-p run: -c/--config, --tsconfig, --test-list, --project (variadic, discovery only), -j/--workers, --timeout, --headed, --output, --ignore-snapshots, --fail-on-flaky-tests.
Not supported on pwc-p run: --grep/-g, --grep-invert, --last-failed, --shard, --update-snapshots/-u, or positional spec paths. Use pwc-p discover (or playwright test --list …) with filters, then pwc-p run with --pwc-discovery-file pointing at the same file. Alternatively, set orchestration.discoveryFile or CURRENTS_DISCOVERY_FILE so pwc-p run uses that path without --test-list. For a manually curated list, pass --test-list instead.
pwc-p discover -c playwright.config.ts --pwc-discovery-file tests.txt --grep @smoke
pwc-p run --project-id PROJECT_ID --key RECORD_KEY --ci-build-id "$CI_BUILD_ID"
@currents/playwright reporterAlternatively, you can manually add the reporter to playwright configuration and keep using playwright test CLI command.
import type { PlaywrightTestConfig } from "@playwright/test";
import { currentsReporter } from "@currents/playwright";
const currentsConfig = {
ciBuildId: process.env.CURRENTS_CI_BUILD_ID,
recordKey: process.env.CURRENTS_RECORD_KEY,
projectId: process.env.CURRENTS_PROJECT_ID,
tag: ["runTagA", "runTagB"],
};
const config: PlaywrightTestConfig = {
reporter: [currentsReporter(currentsConfig)],
};
export default config;
You can also provide configuration by setting environment variables before running playwright command
CURRENTS_RECORD_KEY=RECORD_KEY CURRENTS_PROJECT_ID=PROJECT_ID CURRENTS_CI_BUILD_ID=hello-currents CURRENTS_TAG=tagA,tagB npx playwright test
Run all tests in the current directory:
pwc --key <record-key> --project-id <id> --ci-build-id <build-id>
Run only tests filtered by the tag "@smoke":
pwc --key <record-key> --project-id <id> --ci-build-id <build-id> --grep smoke
Run playwright tests and add tags "tagA", "tagB" to the recorded run:
pwc --key <record-key> --project-id <id> --ci-build-id <build-id> --tag tagA --tag tagB
Provide playwright arguments and flags:
pwc --key <record-key> --project-id <id> --ci-build-id <build-id> -- --workers 2 --timeout 10000 --shard 1/2
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 running enabling pw-parallelization.
Explore our comprehensive guides and documentation:
FAQs
[Currents](https://currents.dev/playwright) is the most popular and advanced cloud-based platform for Playwright - debugging, error analysis, real-time analytics, orchestration, and more
The npm package @currents/playwright receives a total of 231,165 weekly downloads. As such, @currents/playwright popularity was classified as popular.
We found that @currents/playwright demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.