test(webapp): update documentation
- Change the description about the environment test
This commit is contained in:
@@ -65,9 +65,6 @@ npx cypress open
|
||||
- Tests fetching timeseries data with a valid user-room-device selection, ensuring the main chart is displayed and no "no data" message appears.
|
||||
- Tests fetching timeseries data with an invalid user-room-device selection (e.g., changing the user to "Sylvan"), ensuring the main chart is not displayed and the "no data" message is shown.
|
||||
|
||||
#### Important Notes
|
||||
The E2E tests use a web-app development image deployed on https://app.mse.kb28.ch/ for the moment. Because there is a problem with the service image in the CI. The environment variables cannot be set correctly to the job's service. An issue is opened to fix this problem: [#37].
|
||||
|
||||
### Unit Tests
|
||||
|
||||
- **Serie Component**:
|
||||
@@ -76,3 +73,9 @@ The E2E tests use a web-app development image deployed on https://app.mse.kb28.c
|
||||
- Ensures the label "Unknown" is returned for unknown types.
|
||||
- Verifies that temperature and humidity data are formatted correctly by `getSerie()`, including label, color, and data structure.
|
||||
- Ensures unknown types are handled appropriately in `getSerie()`, defaulting to the correct color and axis.
|
||||
|
||||
## Test in CI
|
||||
|
||||
All test are covered by the CI pipeline.
|
||||
The unit tests are run on every commit and doesn't require any specific resources.
|
||||
The E2E tests are run too on every commit, but they require a test URL to be set in the environment variable `CYPRESS_TEST_URL` which provide an access to a test instance of the web-app. Actually, these tests are running on the test development instance at `https://app-dev.mse.kb28.ch/`.
|
||||
|
||||
Reference in New Issue
Block a user