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: docs/testing.md
+67-1Lines changed: 67 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,6 +222,72 @@ npm run cypress:open:record
222
222
npm run cypress:run:record
223
223
```
224
224
225
+
### Cypress Environment Variables
226
+
227
+
Cypress uses several environment variables to control test behavior and configuration. These can be set in your shell or passed directly to the Cypress commands.
228
+
229
+
#### CY_TEST_CONFIG
230
+
-**Purpose**: Path to test configuration YAML file
231
+
-**Values**: File path to YAML configuration (e.g., `./test-variables.yml`)
232
+
-**Effect**: Loads test variables and configuration from a YAML file
-**Effect**: Changes where test results (screenshots, videos, reports) are stored
283
+
-**Usage**: `CY_RESULTS_DIR=custom-results npm run cypress:run`
284
+
285
+
#### CY_TEST_TIMEOUT_SECONDS
286
+
-**Purpose**: Sets global test timeout
287
+
-**Values**: Number of seconds
288
+
-**Effect**: Configures the global timeout for all tests
289
+
-**Usage**: `CY_TEST_TIMEOUT_SECONDS=300 npm run cypress:run`
290
+
225
291
### Page Objects
226
292
227
293
Page Objects are TypeScript objects / classes used to encapsulate all the selectors and functions related to a particular page or UI element. The functions exposed by a page object use the following prefixes:
Copy file name to clipboardExpand all lines: frontend/src/__tests__/cypress/cypress/tests/e2e/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,10 @@ npm run cypress:run \
143
143
-`@Maintain`: Skip tests that require maintenance
144
144
-`@NonConcurrent`: Skip tests that cannot run concurrently (to prevent resource conflicts)
145
145
146
+
## Environment Variables
147
+
148
+
For comprehensive documentation of all Cypress environment variables, see the [Cypress Environment Variables section in the main testing documentation](/docs/testing.md#cypress-environment-variables).
149
+
146
150
## Writing Tests
147
151
148
152
e2e tests should focus on user journeys through the application, validating that features work as intended from the user's perspective.
@@ -198,7 +202,7 @@ Tests are parameterized using tags and applied to the 'it' block:
198
202
*`Workbenches/Pipelines etc.`: Functional Area
199
203
*`Destructive`: Tests that have the potential to break other tests (changing configuration etc.)
200
204
*`Bug`: Tests that are currently failing due to a Product Bug
201
-
*`Maintain`: Tests that are currently failing and require maintenance
205
+
*`Maintain`: Tests that are currently failing and require maintenance
202
206
*`NonConcurrent`: Tests that cannot run concurrently (to prevent resource conflicts)
0 commit comments