Skip to content

Commit

Permalink
Merge pull request #45 from trivago/chart-rendering-bug
Browse files Browse the repository at this point in the history
added feature description to tool tip
  • Loading branch information
Benjamin Bischoff authored May 8, 2018
2 parents e64ac96 + ced59d0 commit 3f7905c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

Back to [Readme](README.md).

## [0.7.1] - 2018-05-08

# Added

* Feature description is now shown in the feature tool tip on hover

# Fixed

* Chart was not rendered when a scenario contained step data tables

## [0.7.0] - 2018-04-18

# Changed
Expand Down
2 changes: 1 addition & 1 deletion example-project/json/fail.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"description": "",
"description": "This is a feature description 2",
"elements": [
{
"description": "",
Expand Down
2 changes: 1 addition & 1 deletion example-project/json/pass.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"description": "",
"description": "This is a feature description 1",
"elements": [
{
"description": "",
Expand Down
2 changes: 1 addition & 1 deletion example-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.benjamin-bischoff</groupId>
<artifactId>cluecumber-test-project</artifactId>
<version>0.7.0</version>
<version>0.7.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
3 changes: 2 additions & 1 deletion plugin-code/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.trivago.rta</groupId>
<artifactId>cluecumber-report-plugin</artifactId>
<version>0.7.0</version>
<version>0.7.1</version>
<url>https://github.com/trivago/cluecumber-report-plugin</url>

<name>Cluecumber Maven Plugin for Cucumber Reports</name>
Expand Down Expand Up @@ -132,6 +132,7 @@
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
Expand Down
11 changes: 9 additions & 2 deletions plugin-code/src/main/resources/template/macros/scenario.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</#switch>

<div class="card-body">
<table id="results_skipped" class="table table-hover">
<table id="results_${status}" class="table table-hover renderAsDataTable">
<thead>
<tr>
<th class="text-left">Feature</th>
Expand All @@ -31,11 +31,18 @@
</thead>
<tbody>
<#list reports as report>

<#assign tooltipText = "">
<#if report.description?has_content>
<#assign tooltipText = "${report.description} | ">
</#if>
<#assign tooltipText = "${tooltipText}${report.uri}">

<#list report.elements as element>
<#if (skippedRequested && element.skipped) || (failedRequested && element.failed) || (passedRequested && element.passed)>
<tr>
<td class="text-left text-capitalize"><span data-toggle="tooltip"
title="${report.uri}">${report.name?html}</span>
title="${tooltipText}">${report.name?html}</span>
</td>
<td class="text-left text-capitalize">
<a href="pages/scenario-detail/scenario_${element.scenarioIndex}.html">${element.name?html}</a>
Expand Down
2 changes: 1 addition & 1 deletion plugin-code/src/main/resources/template/snippets/js.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<script>
$(document).ready(function () {
// Data tables
$('table').on('draw.dt', function () {
$('.renderAsDataTable').on('draw.dt', function () {
$('[data-toggle="tooltip"]').tooltip();
}).DataTable();
Expand Down
2 changes: 1 addition & 1 deletion plugin-code/src/main/resources/template/tag-summary.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<div class="row">
<@page.card width="12" title="Tag Summary" subtitle="">
<table id="tag_summary" class="table table-hover">
<table id="tag_summary" class="table table-hover renderAsDataTable">
<thead>
<tr>
<th>Tag</th>
Expand Down

0 comments on commit 3f7905c

Please sign in to comment.