You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: web/cypress/README.md
+40-84Lines changed: 40 additions & 84 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,33 @@ Creates `export-env.sh` that you can source later: `source export-env.sh`
58
58
59
59
---
60
60
61
+
## Test Configuration Scenarios
62
+
63
+
All scenarios require the [standard variables](#required-variables) (`CYPRESS_BASE_URL`, `CYPRESS_LOGIN_IDP`, `CYPRESS_LOGIN_USERS`, `CYPRESS_KUBECONFIG_PATH`).
64
+
65
+
### General Scenarios
66
+
67
+
| Scenario | Key Variables | Description |
68
+
|----------|---------------|-------------|
69
+
|**Released Version**|`CYPRESS_COO_UI_INSTALL=true`| Install operators from redhat-operators catalog. Production-like testing. |
70
+
|**Pre-provisioned COO**|`CYPRESS_SKIP_COO_INSTALL=true`, optionally `CYPRESS_COO_NAMESPACE=<ns>`| COO already installed. Tests still enable the monitoring plugin. Specify namespace if non-default. |
|**Local Dev / PR Testing**|`CYPRESS_SKIP_ALL_INSTALL=true`| Run UI locally via `make start-feature-frontend` ([details](../../README.md#development)). Skips all setup. |
73
+
|**Custom Images**|`CYPRESS_MP_IMAGE`, `CYPRESS_MCP_CONSOLE_IMAGE`, `CYPRESS_CHA_IMAGE`, `CYPRESS_CUSTOM_COO_BUNDLE_IMAGE`| Patch component images in the CSV, or replace the operator bundle. Combine with an installation method above. |
74
+
|**FBC Image**|`CYPRESS_FBC_STAGE_COO_IMAGE`| Install COO from File-Based Catalog image. For release validation. |
75
+
|**Konflux CI Bundle**|`CYPRESS_KONFLUX_COO_BUNDLE_IMAGE=<image>`| Install COO from Konflux CI bundle. For PR/CI testing. |
76
+
77
+
### Test Areas
78
+
79
+
| Area | Description | Run Command |
80
+
|------|-------------|-------------|
81
+
|**Monitoring (CMO)**| Core monitoring tests against CMO stack. No additional operator installation needed. |`npm run test-cypress-monitoring`|
82
+
|**COO (Perses, Dashboards, Incidents)**| Requires COO installation. |`npm run test-cypress-coo`|
83
+
|**Incidents**| COO subset. Set `CYPRESS_TIMEZONE` to match cluster timezone. |`npm run test-cypress-incidents`|
84
+
|**Virtualization**| Requires OpenShift Virtualization (KubeVirt) installation. |`npm run test-cypress-virtualization`|
Set the following var to specify the Cluster Observability Operator namespace. Defaults to `openshift-cluster-observability-operator` if not set. This is useful when testing with different namespace configurations (e.g., using `coo` instead of the default).
export CYPRESS_SESSION=true # Faster test execution
208
-
```
209
-
210
-
---
211
-
212
157
## Running Cypress
213
158
214
159
### Interactive Mode (GUI)
@@ -447,9 +392,20 @@ cypress/
447
392
448
393
---
449
394
450
-
### Incident Detection Test Documentation
395
+
## Incident Detection Test Documentation
396
+
397
+
For configuration scenarios, see [COO Tests](#test-configuration-scenarios) above.
398
+
399
+
### Incidents-Specific Variables
400
+
401
+
| Variable | Default | Description |
402
+
|----------|---------|-------------|
403
+
|`CYPRESS_TIMEZONE`|`UTC`| Cluster timezone for incident timeline calculations |
404
+
|`CYPRESS_MOCK_NEW_METRICS`|`false`| Transform old metric names to new format in mocks |
405
+
406
+
### Test Case Documentation
451
407
452
-
Test documentation for the Incidents feature is available at [`docs/incident_detection/tests/`](../../docs/incident_detection/tests/) in the repository root.
408
+
Detailed test documentation: [`docs/incident_detection/tests/`](../../docs/incident_detection/tests/)
0 commit comments