diff --git a/CHANGES.md b/CHANGES.md index 8bb64d4..7328ee4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/examples/reports/21-4-2017/app.js b/examples/reports/21-4-2017/app.js index f44a207..5bc870f 100644 --- a/examples/reports/21-4-2017/app.js +++ b/examples/reports/21-4-2017/app.js @@ -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); diff --git a/examples/reports/21-4-2017/report.html b/examples/reports/21-4-2017/report.html index 85e981c..e7a4d7e 100644 --- a/examples/reports/21-4-2017/report.html +++ b/examples/reports/21-4-2017/report.html @@ -185,7 +185,7 @@

{{ctrl.currentSpec = ctrl.getSpec(result.description)}} - + {{ctrl.currentParent = ctrl.getParent(result.description)}} diff --git a/lib/app.js b/lib/app.js index 66513e4..74431a7 100644 --- a/lib/app.js +++ b/lib/app.js @@ -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); diff --git a/lib/index.html b/lib/index.html index 85e981c..e7a4d7e 100644 --- a/lib/index.html +++ b/lib/index.html @@ -185,7 +185,7 @@

{{ctrl.currentSpec = ctrl.getSpec(result.description)}} - + {{ctrl.currentParent = ctrl.getParent(result.description)}}