Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around Cypress not handling beforeunload-related prompts
* Our app registers beforeunload event listener e.g. when editing a native SQL question. * Cypress does not automatically close the browser prompt and does not allow manually * interacting with it (unlike with window.confirm). The test will hang forever with * the prompt displayed and will eventually time out. We need to work around this by * monkey-patching window.addEventListener to ignore beforeunload event handlers. * * @see cypress-io/cypress#2118
- Loading branch information