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
209
-
```
210
-
211
-
---
212
-
213
158
## Running Cypress
214
159
215
160
### Interactive Mode (GUI)
@@ -448,9 +393,20 @@ cypress/
448
393
449
394
---
450
395
451
-
### Incident Detection Test Documentation
396
+
## Incident Detection Test Documentation
397
+
398
+
For configuration scenarios, see [COO Tests](#test-configuration-scenarios) above.
399
+
400
+
### Incidents-Specific Variables
401
+
402
+
| Variable | Default | Description |
403
+
|----------|---------|-------------|
404
+
|`CYPRESS_TIMEZONE`|`UTC`| Cluster timezone for incident timeline calculations |
405
+
|`CYPRESS_MOCK_NEW_METRICS`|`false`| Transform old metric names to new format in mocks |
406
+
407
+
### Test Case Documentation
452
408
453
-
Test documentation for the Incidents feature is available at [`docs/incident_detection/tests/`](../../docs/incident_detection/tests/) in the repository root.
409
+
Detailed test documentation: [`docs/incident_detection/tests/`](../../docs/incident_detection/tests/)
0 commit comments