Skip to content

Commit

Permalink
Fix sporadic errors in test_results due to tutorial popup
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Jun 3, 2020
1 parent a3aa6a4 commit 24ee327
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/openqa/webui/test_results.pm
Expand Up @@ -38,6 +38,12 @@ sub upload_autoinst_log {

sub handle_notify_popup {
return undef unless match_has_tag 'openqa-dont-notify-me';
for my $i (1 .. 5) {
assert_and_click 'openqa-dont-notify-me';
if (check_screen('openqa-tutorial-confirm')) {
last;
}
}
assert_and_click 'openqa-tutorial-confirm';
assert_screen 'openqa-tutorial-closed';
$tutorial_disabled = 1;
Expand All @@ -50,13 +56,10 @@ sub run {
# of the running job
$tutorial_disabled = 0;
assert_screen with_optional_tutorial_popup 'openqa-tests';
click_lastmatch;
handle_notify_popup and assert_and_click 'openqa-tests';
assert_screen with_optional_tutorial_popup 'openqa-job-minimalx';
click_lastmatch;
handle_notify_popup and assert_and_click 'openqa-job-minimalx';
assert_screen with_optional_tutorial_popup 'openqa-job-details';
click_lastmatch;
handle_notify_popup;
assert_screen 'openqa-testresult', 600;
}
Expand Down

0 comments on commit 24ee327

Please sign in to comment.