This repository has been archived by the owner on Mar 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Cannot spy on window:alert #6
Labels
Comments
I know we handle alerts differently so this may not work on alert, but also try looking at this recipe to make sure the spy is setup in the right place. https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/stubbing-spying__window/cypress/integration/window-stubbing.spec.js |
bahmutov
added a commit
that referenced
this issue
Jan 2, 2018
yeah, there is no window before the mount, hmm, I added a test to experiment 8b97e63 |
Version Tip: safely upgrade dependency cypress-react-unit-test in your project using next-update |
dmtrKovalenko
pushed a commit
to cypress-io/cypress
that referenced
this issue
Oct 1, 2020
dmtrKovalenko
pushed a commit
to cypress-io/cypress
that referenced
this issue
Oct 1, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Silently skips alerts https://docs.cypress.io/api/events/catalog-of-events.html#Window-Alert
The text was updated successfully, but these errors were encountered: