# 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="/files/vRzwrEKHjGFOjsWGTt73" alt=""><figcaption><p>Example of collecting Playwright Component test results</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.currents.dev/guides/playwright-component-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
