Skip to content

Commit

Permalink
cmd/hiveview: show test number in link back
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Feb 6, 2023
1 parent ff80452 commit a2b088f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/hiveview/assets/lib/app-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,15 @@ function setHL(num, scroll) {

// showLinkBack displays the link to the test viewer.
function showLinkBack(suiteID, suiteName, testID) {
let linkText = "Back to test suite: " + suiteName;
var linkURL;
var text, url;
if (testID) {
linkURL = app.route.testInSuite(suiteID, suiteName, testID);
text = "Back to test " + testID + " in suite ‘" + suiteName + "’";
url = app.route.testInSuite(suiteID, suiteName, testID);
} else {
linkURL = app.route.suite(suiteID, suiteName);
text = "Back to test suite ‘" + suiteName + "’";
url = app.route.suite(suiteID, suiteName);
}
$('#link-back').html(html.get_link(linkURL, linkText));
$('#link-back').html(html.get_link(url, text));
}

function showTitle(type, title) {
Expand Down

0 comments on commit a2b088f

Please sign in to comment.