From 375250000fe149581cd228b2750617b6a799ea84 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 12 Feb 2024 09:55:31 -0800 Subject: [PATCH] Add a wait_still_screen to update_graphical for an animation GNOME Software seems to be doing some kind of animation between the third party dialog and the main UI, and we're clicking on a banner instead of the update button. Try a wait_still_screen to deal with this. Signed-off-by: Adam Williamson --- tests/desktop_update_graphical.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 14f30be9..220df197 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -52,6 +52,8 @@ sub run { mouse_set 10, 10; mouse_hide; } + # wait out a possible animation + wait_still_screen 5; assert_and_click 'desktop_package_tool_update'; # wait for things to settle if e.g. GNOME is refreshing wait_still_screen 5, 90;