diff --git a/tests/openqa/webui/test_results.pm b/tests/openqa/webui/test_results.pm index b05be246b6b8..50cfe99b2249 100644 --- a/tests/openqa/webui/test_results.pm +++ b/tests/openqa/webui/test_results.pm @@ -46,7 +46,11 @@ sub run { handle_notify_popup; assert_screen 'openqa-tests'; assert_and_click 'openqa-tests'; - assert_and_click 'openqa-job-minimalx'; + # At this point the openQA job might still be running or already finished. + # Ensure to show finished results at the bottom of the screen whenever the + # page finished loading + send_key_until_needlematch 'openqa-job-minimalx', 'end'; + click_lastmatch; assert_and_click 'openqa-job-details'; assert_screen 'openqa-testresult', 600; }