Skip to content

Commit

Permalink
Apply tidy to t/ui/27-plugin_obs_rsync_status_details.t
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Feb 17, 2021
1 parent 6ff2141 commit 20d219d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions t/ui/27-plugin_obs_rsync_status_details.t
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,14 @@ sub _wait_helper {
sleep .1; # uncoverable statement
}
# sometimes gru is not fast enough, so let's refresh the page and see if that helped
if($refresh) { # uncoverable statement
if ($refresh) { # uncoverable statement
$refresh->(); # uncoverable statement
} else {
}
else {
$driver->refresh(); # uncoverable statement
}
}
return $driver->find_element($element)->get_text(); # uncoverable statement
return $driver->find_element($element)->get_text(); # uncoverable statement
}

foreach my $proj (sort keys %params) {
Expand Down Expand Up @@ -176,12 +177,14 @@ foreach my $proj (sort keys %params) {
$builds_text = ($builds_text ? $builds_text : 'No data');
# now request fetching builds from obs
$driver->find_element("tr#folder_$ident .obsbuildsupdate")->click();
my $obsbuilds = _wait_helper("tr#folder_$ident .obsbuilds", sub {
my $obsbuilds = _wait_helper(
"tr#folder_$ident .obsbuilds",
sub {
shift eq $builds_text;
}, sub {
},
sub {
$driver->find_element("tr#folder_$ident .obsbuildsupdate")->click();
}
);
});
is($obsbuilds, $builds_text, "$proj obs builds");

if ($dt ne 'no data') {
Expand Down

0 comments on commit 20d219d

Please sign in to comment.