From 3db92ef976f4f2460c658cb754c14451f5b79ebc Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: May 05 2022 00:02:05 +0000 Subject: Cockpit updates: wait a bit after hitting up key Otherwise we race between the needle match and the screen scroll update, and can click the wrong thing. Signed-off-by: Adam Williamson --- diff --git a/lib/cockpit.pm b/lib/cockpit.pm index 21c5126..bb9a749 100644 --- a/lib/cockpit.pm +++ b/lib/cockpit.pm @@ -45,6 +45,7 @@ sub select_cockpit_update { click_lastmatch; if (match_has_tag "cockpit_search") { send_key "up"; + wait_still_screen 2; assert_and_click "cockpit_software_updates"; } # wait for the updates to download