dutchiexl / BehatHtmlFormatterPlugin

This is a behat plugin to generate HTML reports
MIT License
112 stars 116 forks source link

Collapse function missing #89

Closed DanTalash closed 7 years ago

DanTalash commented 7 years ago

Any report page will have an error in the console complaining about collapse() not being a function.

The function is being called on page load being finished, and appears to be part of bootstrap, but doesn't seem to be included in the bootstrap javascript received from the CDN.

See this codepen which contains the output from a simple test.

DanTalash commented 7 years ago

After some digging, it appears that the issue was with my behat.yml configuration.

I had selected both Twig and Behat2 for renderer, because I copied the sample configuration from README.md.

It looks like if both renderers are enabled, then page content for both will be combined in one page. Because the behat2 renderer includes it's own copy of jQuery, two copies of jQuery are loaded, but only the first copy of jQuery has the bootstrap javascript functions loaded.

Removing Behat2 from the renderer list fixes the issue, but does remove some page content.