Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: fitnesse-plugin
-
Labels:None
-
Environment:FitNesse plugin 1.12
Jenkins 1.600
-
Similar Issues:
Description
New styling added in the latest FitNesse plugin makes SLIM tables appear as collapsed inside captured details, however there is no way to expand them.
It seems like FitNesse plugin is missing some essential java-script to allow those tables behave same way they do in FitNesse. Another option is that java-script is included but unable to interact with elements inside Jenkins page.
In jenkins-fitnesse.js I think you just need to replace
.on("touchstart click", "#fitnesse_results .collapsible > p.title, #fitnesse_results .scenario > td", function ()
{ $(this).parent().toggleClass('closed'); }).on("click", "#fitnesse_results .collapsible > p.title a", function (event) { // Do not open section when clicking on a link in the title, just follow the link. event.stopPropagation(); return true; })
with the scenario handling from fitnesse.js
.on("touchstart click", "#fitnesse_results .collapsible > p.title, #fitnesse_results .scenario > td", function () { $(this).parent().toggleClass('closed'); }
)
{ $(this).parent().toggleClass('closed').nextUntil(":not(.exception-detail, .scenario-detail)").toggleClass("closed-detail"); }.on("click", "#fitnesse_results tr.scenario td, #fitnesse_results tr.exception td", function ()
)
{ // Do not open section when clicking on a link in the title, just follow the link. event.stopPropagation(); return true; }.on("click", "#fitnesse_results .collapsible > p.title a", function (event)
)