Skip to content
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

Question: how to move "background" step out of "beforeHooks" #78

Closed
alescinskis opened this issue Dec 19, 2023 · 2 comments
Closed

Question: how to move "background" step out of "beforeHooks" #78

alescinskis opened this issue Dec 19, 2023 · 2 comments
Labels
question Further information is requested reporter

Comments

@alescinskis
Copy link

alescinskis commented Dec 19, 2023

Hello,

I want to be able to utilise background keyword in my scenarios, but I see that in html report, when such background section is present, it's listed under "beforeHooks", which hinders scenario readability.

report looks like this:
image
if we delve into "beforeEachHook" then we'll see the background step is there
image
I'd like the background step be on the scenario level in the reporter, like this
image

is it currently possible to move it on the scenario level? or this feature should be requested?

@alescinskis alescinskis added the question Further information is requested label Dec 19, 2023
@vitalets
Copy link
Owner

Hi @alescinskis ! Currently it is not possible, but I suggest to wait for Cucumber HTML reporter in #9 that I'm working on. In Cucumber reporter Background steps are shown in dedicated section that is the best option imho:

@vitalets
Copy link
Owner

vitalets commented Apr 1, 2024

Now playwright-bdd supports Cucumber reports, that show background step as in feature file.
There is another idea to enhance Playwright html reporter, tracked here #122

@vitalets vitalets closed this as completed Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested reporter
Projects
None yet
Development

No branches or pull requests

2 participants