# Configuration in PandoraFMS

The plugin is delivered as a `.disco` Discovery package. To configure it:

**1. Install the `.disco` package**, if not already installed: go to **Discovery → Extension manager** and upload the package (or confirm it is already listed).

**2. Create a new Discovery task**: go to **Discovery → Applications → Playwright**.

**3. Fill in the wizard steps** (see [Parameters](#parameters) above):

- *Basic setup*: worker mode and browser.
- *Worker setup*: only shown when worker mode is `remote` — SSH connection details.
- *Test setup*: Docker image, browser size, timeout, `Send full report`, `Generate error history module`, and the Playwright test `.ts` content itself.
- *Advanced setup*: `Debug mode` and, once it is switched on, `Debug directory`. See [Debug mode](#debug-mode) below.

**4. Save the task.** On each execution, the plugin runs the test in Docker and reports one agent per Playwright `test(...)` found in the file.

**5. Open the resulting agent(s)** in the console. The **WUX transactional view** renders the phases derived from `test.step(...)`; standard module views show status, time, error screenshot, metrics, and (if enabled) the error-history modules.

**6. Review failures visually** in the **WUX Transactions** extension (*Monitoring → Views*), which surfaces the video, screenshots and reports captured by [Debug mode](#debug-mode) for each transaction.