test(webapp): provide an environment variable for e2e tests

This commit is contained in:
fastium
2025-06-24 18:48:43 +02:00
parent 9967aef1f5
commit 4e5959fac4
4 changed files with 14 additions and 6 deletions

View File

@@ -25,6 +25,16 @@ cd ./web-app
npm install --inlude=dev
```
### Before Running Tests
A test url is needed to perform the tests in local:
```bash
export CYPRESS_TEST_URL=http://your-test-url.com
```
Note: most of the time, if you are testing in local, you can use:
```bash
export CYPRESS_TEST_URL=http://localhost:8080/
```
### Run unit Tests
```bash
npm run test:unit