Skip to content

Commit

Permalink
Improved displaying of the spec names
Browse files Browse the repository at this point in the history
  • Loading branch information
Evilweed committed May 17, 2017
1 parent db84524 commit 0676020
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Version 0.4.8
* Improved displaying of spec names

## Version 0.4.7
* Fixed issue where last pending test case was not added to report
* Fixed crash on gathering Logs from Browsers other than Chrome
Expand Down
2 changes: 1 addition & 1 deletion examples/reports/21-4-2017/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.controller('ScreenshotReportController', function ($scope) {
this.getParent = function (str) {
var arr = str.split('|');
str = "";
for (var i = arr.length - 1; i > 0; i--) {
for (var i = arr.length - 2; i > 0; i--) {
str += arr[i] + " > ";
}
return str.slice(0, -3);
Expand Down
2 changes: 1 addition & 1 deletion examples/reports/21-4-2017/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h2>
{{ctrl.currentSpec = ctrl.getSpec(result.description)}}
</th>
</tr>
<tr ng-if="ctrl.currentParent != ctrl.getParent(result.description)">
<tr ng-if="ctrl.currentParent != ctrl.getParent(result.description) && ctrl.getParent(result.description)">
<th class="testCase" colspan="10">
{{ctrl.currentParent = ctrl.getParent(result.description)}}
</th>
Expand Down
2 changes: 1 addition & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.controller('ScreenshotReportController', function ($scope) {
this.getParent = function (str) {
var arr = str.split('|');
str = "";
for (var i = arr.length - 1; i > 0; i--) {
for (var i = arr.length - 2; i > 0; i--) {
str += arr[i] + " > ";
}
return str.slice(0, -3);
Expand Down
2 changes: 1 addition & 1 deletion lib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h2>
{{ctrl.currentSpec = ctrl.getSpec(result.description)}}
</th>
</tr>
<tr ng-if="ctrl.currentParent != ctrl.getParent(result.description)">
<tr ng-if="ctrl.currentParent != ctrl.getParent(result.description) && ctrl.getParent(result.description)">
<th class="testCase" colspan="10">
{{ctrl.currentParent = ctrl.getParent(result.description)}}
</th>
Expand Down

0 comments on commit 0676020

Please sign in to comment.