New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not disable webdriver steps reporting when using cucumber step reporter #6049
Do not disable webdriver steps reporting when using cucumber step reporter #6049
Conversation
@gambrose can you please sign the CLA with the email you committed the PR with? @BorisOsipov I would need your input here if this makes sense 🤔 |
@@ -193,7 +193,9 @@ class AllureReporter extends WDIOReporter { | |||
return | |||
} | |||
|
|||
if (this.options.disableWebdriverStepsReporting || this.options.useCucumberStepReporter || this.isMultiremote) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that this patch disables whatever useCucumberStepReporter
was suppose to be for, doesn't seem to me like a right solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my understanding, useCucumberStepReporter
setting is used to change the report hierarchy when using cucumber. It goes this by using steps instead of tests (see line 103).
It appears it also disabled the command logging but as this is controlled using a separate flag and I would like to use both features as per #6049 I think this is the correct approach.
@gambrose @christian-bromann |
The report obviously has more steps with web driver reporting enabled but these extra steps appear as sub-steps to the steps with the gerkin text. So it is still readable and you can then drill down to see what commands where run. You can also easily get the original behaviour by also enabling |
@gambrose can you provide a screenshot how the behavior was before and how it is now? |
And as I said you regain original behaviour if you also specify
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! Thanks for looking into this 👍
Proposed changes
Resolves #6048
Types of changes
Checklist
Further comments
I have marked this as a breaking change as it will affect existing users that have
useCucumberStepReporter
turned on. If they want to preserve the existing behaviour then would need to also enabledisableWebdriverStepsReporting
Reviewers: @webdriverio/project-committers