From b9df4c467129fffe9c0ebf2efb05a7629dfd9204 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 30 Mar 2021 12:50:32 -0700 Subject: [PATCH] More fiddling with this goddamn KDE logic loop Man, this thing can get into a lot of states. Apparently somehow it can go straight from refresh to reboot? Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 2efba306..607c43c4 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -102,9 +102,11 @@ sub run { assert_screen ['kde_offline_update_reboot', 'desktop_package_tool_update_apply']; # break out if we reached the reboot button last if (match_has_tag 'kde_offline_update_reboot'); - # otherwise, try refresh and apply + # otherwise, try refresh and apply or reboot assert_and_click 'desktop_package_tool_update_refresh'; - assert_and_click 'desktop_package_tool_update_apply'; + assert_screen ['kde_offline_update_reboot', 'desktop_package_tool_update_apply']; + last if (match_has_tag 'kde_offline_update_reboot'); + click_lastmatch; } assert_and_click 'kde_offline_update_reboot'; boot_to_login_screen;