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: In playwright report, the scenario is displayed twice #92

Closed
anud22 opened this issue Feb 21, 2024 · 2 comments
Closed

Question: In playwright report, the scenario is displayed twice #92

anud22 opened this issue Feb 21, 2024 · 2 comments
Labels
question Further information is requested

Comments

@anud22
Copy link

anud22 commented Feb 21, 2024

In playwright report, the scenario is displayed twice.

 Scenario Outline: Metrics - Verify metrics Cost  Is displayed for region "<region>"
                        //steps

Examples:
  | region   |
  | USB   |
  | NCH   |

Is there a way we can just display the scenario with the data only in the playwright report ?

image

@anud22 anud22 added the question Further information is requested label Feb 21, 2024
@vitalets
Copy link
Owner

I agree, it's a bit verbose for BDD scenario outlines.
Currently we can't change the structure of Playwright report that shows full path for each test.
I'm going to provide adapter for Playwright html report that shows only BDD-related items.
Possible workarounds for now:

  1. Reduce length of scenario title using comment syntax:
Scenario Outline: Metrics
   //steps

# title-format: Metrics - Verify metrics Cost  Is displayed for region "<region>"
Examples:
  | region   |
  | USB   |
  | NCH   |
  1. Try out Cucumber html reporter, it's still in beta but should work well. Feel free to report any issues.

@anud22
Copy link
Author

anud22 commented Feb 22, 2024

Thanks @vitalets . It was very helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants