# Testing Procedure
## Summary
The AdvantEDGE platform currently supports end-to-end testing using [Cypress](https://www.cypress.io/). This Node-based Javascript testing tool simulates user interactions with the frontend and validates expected UI updates. It captures DOM snapshots for each event and allows for quick debugging of issues within the browser.
## Prerequisites
- Set up [AdvantEDGE Development Environment](setup_dev.md)
- Set up [AdvantEDGE Runtime Environment](setup_runtime.md)
## Set up testing environment
Before running the tests, do the following:
- [Build AdvantEDGE](build.md)
- [Deploy AdvantEDGE](deploy.md)
- [Install the demo1 scenario](../examples/demo1/README.md)
- Make sure there is no deployed scenario
## Run tests
Test specification files are located [here](../js-apps/meep-frontend/cypress/integration/tests)
### Cypress CLI
```
# Run Cypress tests using CLI
cd js-apps/meep-frontend
npm run cy:run
```
>**NOTE**
>Default AdvantEDGE URL used by cypress is http://127.0.0.1:30000
>To run tests using another deployment:
>`npm run cy:run -- --env meep_url="http://:"`
## Cypress GUI
```
# Run/Debug Cypress tests using GUI
cd js-apps/meep-frontend
npm run cy:open
```
>**NOTE**
>Default AdvantEDGE URL used by cypress is http://127.0.0.1:30000
>To run tests using another deployment:
>`npm run cy:open -- --env meep_url="http://:"`