# Playwright Component Testing

Run [Playwright Component testing](https://playwright.dev/docs/test-components) and report the results to [Currents](https://currents.dev/playwright)

{% hint style="info" %}
**Note November 2023:** Playwright support for Component testing is still experimental
{% endhint %}

Please refer to the example integration of Playwright Component testing with Currents:

{% embed url="<https://github.com/currents-dev/currents-examples/tree/main/playwright/component-testing>" %}

The project contains two simple component tests:

* `src/App.spec.jsx` - a passing test
* `src/AppFailing.spec.jsx` - an intentionally failing test

The results will be sent to Currents for more effective troubleshooting, screenshots, playwright traces and collecting performance metrics:

<figure><img src="https://3745692499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqmFDEiUa9mr11LUlxDnt%2Fuploads%2FVviJSyDW7pGWAfIK0FLu%2F280147761-a7b95888-416d-407e-bf00-833f893765a7.gif?alt=media&#x26;token=0b1f03aa-0b80-414f-bdf4-f66cb242f172" alt=""><figcaption><p>Example of collecting Playwright Component test results </p></figcaption></figure>
