Describe the bug
As part of test, we push the logs and screenshots for a specific step in below order. The default out-of-box cucumber html report populates the details in that order
Log1
Screenshot1
Log2
Screenshot2
However, the generated report populates in below order
Log1
Log2
Screenshot1
Screenshot2
To Reproduce
Steps to reproduce the behavior:
Call below statements in step definition in multiple orders
ScenarioObject.log("MESSAGE : " + message);
ScenarioObject.attach(screenshot, "image/png", "");
Expected behavior
The scenario report will publish the entries in the order it was logged
Expected (From Cucumber Default HTML Report)
Actual:
Sample Json
1.json