allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

one expression fails in one step but the cucumber scenario is marked pass

Open bodycombathuang opened this issue 2 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Given('given', async function (this: ICustomWorld) { await this.step("step1", async () => { expression1 }); await this.step("open location", async () => { expression 2 });

expression 3 });

expression 2 throws exception, and in allure report, I can see the second step fails, but the scenario is marked PASS, it is so strange if I change the code to Given('given', async function (this: ICustomWorld) {

 expression1


expression 2

expression 3 });

the scenario is marked FAIL

I am using typescript+@cucumber/cucumber and allure-cucumberjs

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

bodycombathuang avatar Jan 17 '23 08:01 bodycombathuang