Skip to content

Commit

Permalink
Make 'latest' link more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Sep 1, 2016
1 parent 3a2842b commit e54f550
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/ui/16-tests_previous_results.t
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ my $get = $t->get_ok('/tests/99946#previous')->status_is(200);
my $tab_label = OpenQA::Test::Case::trim_whitespace($t->tx->res->dom->at('li a[href=#previous]')->all_text);
is($tab_label, q/Previous results (2)/, 'previous results with number is shown');
my $previous_results_header = $t->tx->res->dom->at('#previous #scenario .h5');
is(OpenQA::Test::Case::trim_whitespace($previous_results_header->all_text), q/Results for opensuse-13.1-DVD-i586-textmode@32bit/, 'header for previous results with scenario');
is(OpenQA::Test::Case::trim_whitespace($previous_results_header->all_text), q/Results for opensuse-13.1-DVD-i586-textmode@32bit ( latest job for this scenario )/, 'header for previous results with scenario');
$get->element_exists('#res_99945', 'result from previous job');
$get->element_exists('#res_99945 .result_passed', 'previous job was passed');
$get->element_exists('#res_99944 .result_softfailed', 'previous job was passed (softfailed)');
Expand Down
2 changes: 1 addition & 1 deletion templates/test/previous.html.ep
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div id="scenario">
<div class="h5">Results for <i><%= link_to($scenario => url_for ('latest')->query($job->scenario_hash)) %></i></div>
<div class="h5">Results for <i><%= $scenario %></i> (<%= link_to('latest job for this scenario' => url_for('latest')->query($job->scenario_hash)) %>)</div>
</div>
<div>
<table id="previous_results" class="overview table table-striped no-wrap" style="width: 100%">
Expand Down

0 comments on commit e54f550

Please sign in to comment.