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: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,16 @@ beforeEach(() => {
42
42
// you get fresh mini-app running in each test
43
43
```
44
44
45
+
### Extras
46
+
47
+
* Mounted component's actions object is attached to the global `Cypress` variable.
48
+
* The `mount` function adds an action `_getState` to the `actions` object, if there is not one already present. This allows you to get the current state of the component for inspection.
In your Cypress spec files (the example below is from file [cypress/integration/hello-world-spec.js](cypress/integration/hello-world-spec.js)) mount the application, just like you would "normally".
@@ -95,16 +105,6 @@ See video of tests running on CI on the project's [Cypress Dashboard][cypress da
95
105
* `npm run cy:open` starts Cypress GUI, which is great for TDD mode
96
106
* `npm run cy:run` runs Cypress headlessly, testing all specs. Same command [runs on CI](.travis.yml) with additional `--record` argument to record the run and send to the [Cypress Dashboard][cypress dashboard url]
97
107
98
-
## Extras
99
-
100
-
* Mounted component's actions object is attached to the global `Cypress` variable.
101
-
* The `mount` function adds an action `_getState` to the `actions` object, if there is not one already present. This allows you to get the current state of the component for inspection.
0 commit comments