Skip to content

Commit

Permalink
Merge 81a5023 into 101d8dc
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Jun 14, 2016
2 parents 101d8dc + 81a5023 commit 1756c65
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/ui/16-tests_previous_results.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ is($build, '0091', 'build of previous job is shown');
$get = $t->get_ok('/tests/99946?limit_previous=1#previous')->status_is(200);
$previous_results_header = $t->tx->res->dom->at('#previous #scenario')->all_text;
is($previous_results_header, q/Results for opensuse-13.1-DVD-i586-textmode@32bit, limited to 1/, 'can be limited with query parameter');
my $more_results = $t->tx->res->dom->at('#previous #more_results');
is($more_results->all_text, q{Show 20 / 50 / 100 / 400 previous results}, 'more results can be requested');
$get = $t->get_ok($more_results->find('a[href]')->last->{href})->status_is(200);
is($t->tx->res->dom->at('#previous #scenario')->all_text, q/Results for opensuse-13.1-DVD-i586-textmode@32bit, limited to 400/, 'limited to the selected number');

done_testing();
5 changes: 5 additions & 0 deletions templates/test/previous.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,8 @@
</tbody>
</table>
</div>
<div id="more_results">
Show
%= b join('/', map { link_to($_ => url_with->query(limit_previous => $_) . '#previous') } (20, 50, 100, 400));
previous results
</div>

0 comments on commit 1756c65

Please sign in to comment.