window.onbeforeunload and Cypress

added by JavaScript Kicks
2/15/2021 2:04:48 PM

2024 Views

Prevent Test Runner hanging when the application uses confirmation dialog in window.onbeforeunload callback 🧭 You can find the application and the tests for this blog post in the repo onbeforeunload-example Imagine we have a page The application code uses window.onbeforeunload callback to ask the user to confirm before navigating away from the page.


0 comments