Skip to content

[🐛 Bug]: "@wdio/cucumber-framework": "^8.22.0" not respecting config.cucumberOpts.timeout #11675

@SameerYoussef

Description

@SameerYoussef

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

8.22.0

Node.js Version

18

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

Given wdio config includes:
{
framework: "cucumber",
cucumberOpts: {
timeout: 70000,
}

When I run tests using npx wdio wdio.config.js

And my step definition includes: await browser.pause(20000);

What is your expected behavior?

Then I expect my step to pass given the cucumber step timeout is 70s while my step only takes 20s

It appears the timeout has become 20s rather than what is defined in the wdio config.

How to reproduce the bug.

Then(/^I should be on the page$/, async (givenPage) => {
    await browser.pause(20000);
}

Relevant log output

[0-10] Error in "0: Then I should be on the page"
Error: Timeout
    at listOnTimeout (node:internal/timers:569:17)
    at processTimers (node:internal/timers:512:7)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug 🐛good first picka reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions