diff --git a/BDDfy/Processors/HtmlReporter/BDDfy.css b/BDDfy/Processors/HtmlReporter/BDDfy.css index 3e8a5fb9..445a544a 100644 --- a/BDDfy/Processors/HtmlReporter/BDDfy.css +++ b/BDDfy/Processors/HtmlReporter/BDDfy.css @@ -367,3 +367,8 @@ ul.steps .step-title-extra-lines { padding-left: 50px; } + +input.cbx_toggle +{ + float:right; +} diff --git a/BDDfy/Processors/HtmlReporter/BDDfy.js b/BDDfy/Processors/HtmlReporter/BDDfy.js index 4b2273d1..c8387174 100644 --- a/BDDfy/Processors/HtmlReporter/BDDfy.js +++ b/BDDfy/Processors/HtmlReporter/BDDfy.js @@ -1,16 +1,27 @@ -$(function () { - $('.canToggle').each(function () { - var target = $('#' + $(this).data('toggle-target')); - target.hide(); - $(this).click(function () { - target.toggle(200); - }); - }); - - $('.expandAll').click(function () { - $('.steps').css('display', ''); - }); - $('.collapseAll').click(function () { - $('.steps').css('display', 'none'); - }); +$(function () { + $('.canToggle').each(function () { + var target = $('#' + $(this).data('toggle-target')); + target.hide(); + $(this).click(function () { + target.toggle(200); + }); + }); + + $('.expandAll').click(function () { + $('.steps').css('display', ''); + }); + $('.collapseAll').click(function () { + $('.steps').css('display', 'none'); + }); + + $("ul.resultSummary li:not('.storySummary'):not('.scenarioSummary')") + .append(""); + + $(".cbx_toggle").click(function () { + + var checkBox = $(this); + var resultType = checkBox.closest("li").attr("class"); + + $("#testResult div.scenario ." + resultType).parent().toggle(checkBox.is(":checked")); + }); }); \ No newline at end of file