https://github.com/currents-dev/currents-playwright-component-tests-example
https://github.com/currents-dev/currents-playwright-component-tests-example
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/currents-dev/currents-playwright-component-tests-example
- Owner: currents-dev
- Created: 2023-11-02T22:39:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-06T20:05:26.000Z (6 months ago)
- Last Synced: 2025-08-28T18:52:35.236Z (6 months ago)
- Language: JavaScript
- Size: 1.47 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playwright Component testing with Currents
Run [Playwright Component testing](https://playwright.dev/docs/test-components) and report the results to [Currents](https://currents.dev/playwright)
> **Note November 2023:** Playwright support for Component testing is still experimental
The project contains simple component tests:
- `src/App.spec.jsx` - a passing test
- `src/AppFailing.spec.jsx` - a failing test
## Setup
- First run `npm i`
- Create an account and project at https://app.currents.dev
- Grab the following details:
- `projectId`
- `recordKey`
## Run
Run `pwc` command:
`npx pwc --key --project-id --ci-build-id hello-currents`
- Explore `playwright-ct.config.js` and note that screenshots, videos and trace are activated
- Explore more about [CI Build Id](https://currents.dev/readme/guides/cypress-ci-build-id)
Running the command would produce an output that is similar to this:

The results will be reported to Currents Dashboard:

## Explore `@currents/playwright` integration options
Follow our documentation to explore integration options:
https://currents.dev/readme/integration-with-playwright/currents-playwright
- Applying tags for better tests managing
- Create additional projects
- Explore