Skip to content

willBeRetried is not under result anymore after "@cucumber/cucumber": "^8.0.0", #2010

Closed
@Huseyinaltas1

Description

@Huseyinaltas1

"willBeRetried" was a property of "result" before I upgraded to "@cucumber/cucumber": "^8.0.0".
I see now it is "undefined" for below hook. I did not find willBeRetried in any other ITestCaseHookParameter Interface. Thank you in advance.

After(async function (scenario) {
console.log(scenario.result.willBeRetried)
}

#######

I was expecting to make sure scenario will be retired or not.
Node: 16.14.2
npm:8.5.0
"dependencies": {
"@cucumber/cucumber": "^8.0.0",
"@ericblade/quagga2": "^1.4.2",
"axios": "^0.26.0",
"dotenv-flow": "^3.2.0",
"googleapis": "^88.2.0",
"pixelmatch": "^5.2.1",
"puppeteer": "^13.5.0",
"puppeteer-har": "^1.1.2",
"sharp": "^0.29.3",
"tesseract.js": "^2.1.5"
}

#######

When you try this with above dependencies, It is reproduced.

After(async function (scenario) {
console.log(scenario.result.willBeRetried)
}
Output: undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugDefect / Bug✅ acceptedThe core team has agreed that it is a good idea to fix this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions