How to fail Cypress test if the application creates unhandled rejected promise

Опубликовано: 07 Январь 2021
на канале: gleb bahmutov
2,048
19

In this video, I show how to install a window event listener that catches unhandled rejected promises created by the application. When Cypress catches the event it can fail the test. For more details see the recipe "Handling errors" in https://github.com/cypress-io/cypress...