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: cypress/README.md
+32-16Lines changed: 32 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,48 @@
1
1
### cypress in manageiq-ui-classic
2
2
3
-
#### Run
3
+
#### Setup
4
4
5
-
**Prerequisites:**
5
+
##### Initial Setup (One-Time)
6
6
7
-
Before running Cypress tests, you must build webpack with the CYPRESS flag. This disables debug notifications that would block Cypress from accessing UI elements:
7
+
```bash
8
+
cd manageiq-ui-classic
9
+
yarn # Install Cypress and dependencies (run once initially, then again when packages are updated)
10
+
```
8
11
9
-
CYPRESS=true bin/webpack
12
+
**Database Requirements:**
10
13
11
-
If you skip this step, Cypress will show an error and refuse to start.
14
+
Cypress uses the development database from `config/database.yml` and expects a clean, seeded database. If you need a populated development database for regular development, consider using a separate database for Cypress tests as pre-populated data may cause test failures. We are exploring ways to simplify this workflow.
12
15
13
-
**Webpack Options:**
14
-
- Use `CYPRESS=true bin/webpack` for a one-time build
15
-
- Use `CYPRESS=true bin/webpack --watch` if live editing UI files and want automatic pack updates
16
-
17
-
**Note:** The `CYPRESS` environment variable prevents code reloading in dev mode and disables debug notifications.
16
+
The following command sets up the database as Cypress expects:
0 commit comments