Open varshanharshank opened 1 year ago
I had this problem. My solution was to add the code to the e2e.ts file: Cypress.on("uncaught:exception", (err, runnable) => { // returning false here prevents Cypress from // failing the test return false; }); Hope this helps.
Hi @varshanharshank
This issue is happening often for random test cases.
I have an example repo https://github.com/Shelex/cypress-allure-plugin-example where I am already checking that in case cypress crashes - the report will include some message that the crash occurred. However I am afraid that without reproducible steps I would not be able to address your specific case. Also please try latest version, as I do not remember if that feature was already implemented a year ago.
I had this problem. My solution was to add the code to the e2e.ts file: Cypress.on("uncaught:exception", (err, runnable) => { // returning false here prevents Cypress from // failing the test return false; }); Hope this helps.
We already using this code and still seeing that error
I run into the same issue. My dependencies:
Describe the bug When we see the below kind of error and those failed cases are missing in the report. We are running all scripts in jenkins
To Reproduce Steps to reproduce the behavior: This issue is happening often for random test cases.
Expected behavior All failure test cases should be included in the report
Environment (please complete the following information):
Developer Tools Console Output
Additional context Add any other context about the problem here.