BehatHtmlFormatterPlugin icon indicating copy to clipboard operation
BehatHtmlFormatterPlugin copied to clipboard

Rendering issues when a large number of items are present

Open jroy-998 opened this issue 9 years ago • 5 comments

When a large amount of features/scenarios/steps are present in a report, the rendering of the page starts showing strange behaviour.

It looks as though the page is rendering, but then a lot of the information is lost, and everything collapses in a weird order.

I've attached a couple of example screenshots.

screenshot from 2015-10-28 12 20 41 screenshot from 2015-10-28 12 21 08

jroy-998 avatar Oct 28 '15 13:10 jroy-998

Hi! I investigate this behaviour and found problem in this commit https://github.com/dutchiexl/BehatHtmlFormatterPlugin/commit/4b7ce3f9256c90195c209ac3e9e155b572c8385e in renderBeforeOutline we should return result

jhenya avatar Nov 05 '15 20:11 jhenya

Hi, it seems like the issue is still there. Features/scenarios are indented below the previous feature/scenario, even though they should be on the same level in the Behat HTML. When the summary is displayed, some features are also "hidden inside" previous features and that feature has to be opened to see them. The twig report is also hidden in this structure.

Is there any workaround or trick to fix this?

karina-may avatar Mar 15 '16 15:03 karina-may

Hi! Try this versifor https://github.com/jhenya/BehatHtmlFormatterPlugin

jhenya avatar Mar 16 '16 11:03 jhenya

Thanks! It seems like the issue is related to using Scenario Outlines. Normal Scenarios get displayed ok, but for them the Scenario description isn't displayed, the steps are just listed as bullet points and the folding option is missing too.

karina-may avatar Mar 16 '16 15:03 karina-may

work correct when create test in this way:

Scenario Outline: Name for test Given .... And .... When.... Then .... Examples: |header1|header2|header3| |data1 |data1 |data1 | |data2 |data2 |data2 |

Then you will get correct report and Scenario will have name from Example table data:

Scenario Outline: Checking that click on the tab change page to corresponding tab page Scenario: |data1 |data1 |data1 | Given ... And ... When ... Then ...

jhenya avatar Mar 16 '16 16:03 jhenya