From aab86b9bb2a12bf273078947f0d382d7fdbf21ff Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Mon, 5 Jun 2023 10:11:13 +0200 Subject: [PATCH] openQA: Fix finished results hidden out of screen --- tests/openqa/webui/test_results.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }