Have you read the Contributing Guidelines on issues?
WebdriverIO Version
latest
Node.js Version
v14.18.1
Mode
WDIO Testrunner
Which capabilities are you using?
{
"browserName": "chrome",
}
What happened?
Update "@wdio/cucumber-framework" to any version higher than 7.10.1 and notice if you try to ,Run scenario by line number
eg
wdio.js run wdio.conf.js --spec
./tests/e2e/a.feature:5
It will run the entire feature file with all the scenarios
What is your expected behavior?
The scenario which is present in the specified line number should be executed
How to reproduce the bug.
In package.json upgrade the "@wdio/cucumber-framework": "7.16.6", do an npm install and run any scenario in a feature file by passing the below command
say
wdio.js run wdio.conf.js --spec ./tests/e2e/a.feature:5
Note all the scenarios in the a.feature will be running, instead of the scenario present in line number 5
Relevant log output
The results of all the scenarios executed is displayed
Code of Conduct
Is there an existing issue for this?