# Integration Testing

## Overview

All valid submissions from `localhost` will return success, display your `data-success` element and show a console log with the fields received.&#x20;

#### Example console log on development env:

```json
{
    "is_test": true,
    "message": "Submission Setup Correctly",
    "fields": [
        "Name",
        "Email",
        "UID",
        "Issue",
        "Message"
    ]
}
```

## Manual Testing

To ensure a smooth and successful implementation, we recommend testing your setup at least once before deploying it to production. Additionally, it's a good idea to perform another test in the production environment to confirm that your project is properly configured and functioning as expected.

## Automated Testing

The same testing method can be used for running automated tests using Cypress, Capybara, or any other integration testing framework. The API response times should be `~ 5s` at most, but could be higher if you are in a far region from the US servers.


---

# 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.betterform.io/reference/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.
