test(webapp): provide an environment variable for e2e tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user