From 5d4cf014a2d87e894aa4c64669a2cfcdbf96dd86 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 28 May 2021 15:04:37 -0700 Subject: [PATCH] Add a wait_still_screen to desktop_update_graphical for safety Had some repeated failures where there's kind of a race between Software doing some kind of auto-refresh and the test clicking on stuff. This seems to help. 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 607c43c4..502f58d7 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -52,6 +52,8 @@ sub run { } } assert_and_click 'desktop_package_tool_update'; + # wait for things to settle if e.g. GNOME is refreshing + wait_still_screen 5, 90; # depending on automatic update checks, 'apply' or 'download' may # already be visible at this point, we may not need to refresh assert_screen ['desktop_package_tool_update_apply', 'desktop_package_tool_update_download', 'desktop_package_tool_update_refresh'], 120;