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
{{ message }}
This repository was archived by the owner on Feb 28, 2023. It is now read-only.
Confirm the number of `window.track('load')` calls with `cy.visit` + `cy.reload`
145
145
146
146
---
147
-
## 🏁 Stubbing methods
147
+
## 📚 See also
148
148
149
149
- Read Cypress "Stubs, Spies, and Clocks" guide at [https://on.cypress.io/stubs-spies-and-clocks](https://on.cypress.io/stubs-spies-and-clocks)
150
+
- "Stubbing and spying" recipes at [https://github.com/cypress-io/cypress-example-recipes](https://github.com/cypress-io/cypress-example-recipes#stubbing-and-spying)
151
+
152
+
---
153
+
## 🏁 Stubbing methods
154
+
150
155
- To create a spy or a stub you need an object and the method name
151
156
- Prepare for methods called on load using `onBeforeLoad` or via `cy.on('window:before:load', ...)`
0 commit comments