You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{Given, When, Then}=require("cypress-cucumber-preprocessor/steps")Given('I want to ignore any error',()=>{cy.on('fail',()=>{console.log('Ignoring this error.')returnfalse})})When('I execute an action that generate an error',()=>{cy.wrap({}).click({timeout: 1000})})Then('The test should pass',()=>{// Do nothing.})
Due to personal reasons, the previous maintainers of this package are stepping down and handing the reigns over to me, a long-time contributor to the project and a user of it myself. This is a responsibility I'm very excited about. Furthermore, I'd like to thank @lgandecki ++ for all the work that they've done so far.
The repository has however moved and all outstanding issues are being closed. This is not a reflection of the perceived importance of your reported issue. However, if after upgrading to the new version, you still find there to be an issue, feel free to open up another ticket or comment below. Please make sure to read CONTRIBUTING.md before doing so.
Current behavior:
The
fail
event is not being captured when a test fails. This is a violation of the Cypress specification.Desired behavior:
The
fail
event should be captured when a test fails, giving the opportunity to ignore the failure.Test code to reproduce
error_handling.feature
:steps.js
:Versions
package.json
:The text was updated successfully, but these errors were encountered: