Skip to content

Commit

Permalink
Add test to check link for entire build
Browse files Browse the repository at this point in the history
The test verifies if the parent job group contains the valid url for the
entire build.

Related ticket: [42851](https://progress.opensuse.org/issues/42851)
  • Loading branch information
Oleksandr Orlov committed Nov 20, 2018
1 parent 5f0aea6 commit 99a21bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions t/22-dashboard.t
Expand Up @@ -448,6 +448,14 @@ subtest 'job parent groups with multiple version and builds' => sub {
check_builds(\@build_names, $test_parent, 'parent group builds shown sorted by dotted versions',
'parent_group_overview');

my @entire_build_url_list = $get->tx->res->dom->find('.h4 a:first-child')->each();
my $first_entire_build_url = $entire_build_url_list[0]->attr('href');
is(
$first_entire_build_url,
'/tests/overview?distri=suse&version=14.2&build=87.5011&groupid=1001&groupid=1002',
'entire build url contains all the child group ids'
);

$test_parent->update({build_version_sort => 0});

$get = $t->get_ok('/parent_group_overview/' . $test_parent->id)->status_is(200);
Expand Down

0 comments on commit 99a21bb

Please sign in to comment.