Have you read the Contributing Guidelines on issues?
WebdriverIO Version
7.16.16
Node.js Version
14.19.0
Mode
WDIO Testrunner
Which capabilities are you using?
No response
What happened?
As per the cucumber documentation it's possible to add a description to Features, Scenario and other feature file properties. In the result file generated the Feature description is populated but the Scenario is not, even though the field does exist.
Cucumber related packages used
"@cucumber/cucumber": "^7.3.2",
"@cucumber/pretty-formatter": "1.0.0-alpha.0",
"@wdio/cucumber-framework": "7.16.5",
"wdio-cucumberjs-json-reporter": "^3.0.0",
wdio.conf
reporters: [
['cucumberjs-json', {
jsonFolder: './reports/',
language: 'en',
}],
['spec', {
addConsoleLogs: true,
}],
]
Feature File
Feature: My Feature
This is my feature description
Scenario: One
This is my scenario description
Given ....
Scenario: Two
etc.
Result File
{
"keyword": "Feature",
"type": "feature",
"description": " This is my feature description",
// more fields...
.....
"elements": [
{
"keyword": "Scenario",
"type": "scenario",
"description": "",
.....
}
You'll note above that the description is not set for the Scenario
What is your expected behavior?
No response
How to reproduce the bug.
Run a feature file with a description set for a scenario, the value will not be reported in your result file.
Relevant log output
Code of Conduct
Is there an existing issue for this?
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
7.16.16
Node.js Version
14.19.0
Mode
WDIO Testrunner
Which capabilities are you using?
No response
What happened?
As per the cucumber documentation it's possible to add a description to Features, Scenario and other feature file properties. In the result file generated the Feature description is populated but the Scenario is not, even though the field does exist.
Cucumber related packages used
wdio.conf
Feature File
Result File
You'll note above that the description is not set for the Scenario
What is your expected behavior?
No response
How to reproduce the bug.
Run a feature file with a description set for a scenario, the value will not be reported in your result file.
Relevant log output
Code of Conduct
Is there an existing issue for this?