# Performing UI Automation Testing

Following command is used to run all UI tests in an interactive dashboard that allows you to see the status of the tests while they are running and at the same time view the application under test.

```
npm run ui-only 
```

To run a UI test for specific policy you can open Cypress dashboard by running the following command from /e2e-tests folder:

```
npx cypress open 
```

After executing this command, you will see a welcome window where you need to select

'E2E Testing' as shown below:

<figure><img src="/files/XFoJJSJE2kPaFalNv8HM" alt=""><figcaption></figcaption></figure>

Click on the button ' Start E2E Testing in Electron '.

<figure><img src="/files/8xz6zilEnkHdUe1L3iHI" alt=""><figcaption></figcaption></figure>

and then select test under ui-tests/specs/policies

<figure><img src="/files/zVGUBgLPEDBM64PSt1SP" alt=""><figcaption></figcaption></figure>

Finally, all the selected test runs and you can see the key components of the Test Runner that you need to pay attention to when executing tests.

<figure><img src="/files/9cAXSZHIRIZitm0t62q2" alt=""><figcaption></figcaption></figure>

**Test Status Menu:** The menu shows a summary of the number of tests passed, passed, failed, or incomplete, and the time spent on the test.

**URL Preview:** Shows the URL of the test, helps track the URL.

**Viewport Size:** Set the size of your application's viewport to test responsive web applications.

**Command Log:** Shows command logs as they run for all tests. In Cypress runner we can observe the requests that are sent to the server.

**App Preview Screen:** You can see the app while the test is running.


---

# 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://guardian.hedera.com/guardian-dev/guardian/automation-testing/performing-ui-automation-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.
