badeball / cypress-cucumber-preprocessor

Run cucumber/gherkin-syntaxed specs with Cypress
MIT License
1.31k stars 144 forks source link

cypress-cucumber-preprocessor:test-case-started #1167

Closed maykicn closed 4 months ago

maykicn commented 4 months ago

I'm using Cypress.Promise((resolve, reject) in my function. When I run my test with "cypress open" command, it can continue with next scenario after catching error. But with "cypress run" command it can not continue with next scenario.

Error with "cypress open" command : image

Error with with "cypress run" command: image

Desired behavior: The steps should continue after throwing error

Script: findDomain() { return new Cypress.Promise((resolve, reject) => { ......... if (this.totalDomainsChecked<101){ resolve(this.findDomain()); }else{ reject(new Error('Not found')); } . . .

Versions

Checklist

badeball commented 4 months ago

What do you expect from me here?

maykicn commented 4 months ago

Could you help me to solve this error?

badeball commented 4 months ago

It's glaringly obvious that you didn't read the instructions for logging issues at all. You can start by doing that and update your issue accordingly. Make sure to pay attention to the section about reduced test case.