Skip to content

assertion failure in async bdd feature step does not fail the scenario #1520

Closed
@RohanHart

Description

@RohanHart

What are you trying to achieve?

Add a custom assertion to an async bdd step.

eg.,
Then(..., async () => {
const data = await I.grabTextFrom(...)
ok(data === 'foo')
}

What do you get instead?

the scenario is incorrectly marked successful and also raises an UnhandledPromiseRejectionWarning

Details

  • CodeceptJS version: 2.0.4
  • NodeJS Version: 8.11.4
  • Operating System: Linux
  • Puppeteer: 1.11.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions