Skip to content

Commit

Permalink
t: Stabilize ui/10-tests_overview.t
Browse files Browse the repository at this point in the history
This fixes "Failed test 'description popover shows content' at
t/ui/10-tests_overview.t line 168." that we see often recently. Probably
reading the description is a tad slower but the test was not taking the
popup time into account anyway so this should be fixed.
  • Loading branch information
okurz committed Apr 17, 2020
1 parent c1263d4 commit 2523b39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/ui/10-tests_overview.t
Expand Up @@ -164,6 +164,7 @@ like($driver->find_elements('.failedmodule', 'css')->[1]->get_attribute('href'),

my @descriptions = $driver->find_elements('td.name a', 'css');
is(scalar @descriptions, 2, 'only test suites with description content are shown as links');
disable_bootstrap_animations;
$descriptions[0]->click();
is($driver->find_element('.popover-header')->get_text, 'kde', 'description popover shows content');

Expand Down Expand Up @@ -352,6 +353,7 @@ subtest "job template names displayed on 'Test result overview' page" => sub {

my @descriptions = $driver->find_elements('td.name a', 'css');
is(scalar @descriptions, 2, 'only test suites with description content are shown as links');
disable_bootstrap_animations;
$descriptions[0]->click();
is(wait_for_element(selector => '.popover-header')->get_text, 'kde_variant', 'description popover shows content');
};
Expand Down

0 comments on commit 2523b39

Please sign in to comment.