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
+1
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ Recipe | Description
20
20
[Use Chrome Remote Interface](./examples/fundamentals__chrome-remote-debugging) | Use Chrome debugger protocol to trigger hover state and print media style
21
21
[Out-of-the-box TypeScript](./examples/fundamentals__typescript) | Write tests in TypeScript without setting up preprocessors
22
22
[Per-test timeout](./examples/fundamentals__timeout) | Fail a test if it runs longer than the specified time limit
23
+
[Cypress events](./examples/fundamentals__cy-events) | Using `Cypress.on` and `cy.on` to listen to [Cypress events](https://on.cypress.io/catalog-of-events) like `before:window:load`
For more details, see [Cypress catalogue of events](https://on.cypress.io/catalog-of-events)
4
+
5
+
-[cypress-on-spec.js]('./cypress/integration/cypress-on-spec.js) shows how we can add a property to every `window` object before the app load using `Cypress.on('window:before:load', ...)` event listener
6
+
-[cy-on-spec.js]('./cypress/integration/cy-on-spec.js) shows how to add a property to every `window` object before the app loads using `cy.on('window:before:load', ...)` event listener.
7
+
8
+
## See also
9
+
10
+
- recipe "Handling errors" from the [Fundamentals recipes](https://github.com/cypress-io/cypress-example-recipes#fundamentals)
0 commit comments