-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Bug 🐛good first picka reasonable task to start getting familiar with the code basea reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
Have you read the Contributing Guidelines on issues?
- I have 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug 🐛good first picka reasonable task to start getting familiar with the code basea reasonable task to start getting familiar with the code basehelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested