From 13b1f40c3be09bf476a074c23f3ac114add43de7 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Thu, 28 Jun 2018 17:35:41 +0200 Subject: [PATCH] try to fix the refresh. --- tests/desktop_update_graphical.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/desktop_update_graphical.pm b/tests/desktop_update_graphical.pm index 8f5e05cd..b2595109 100644 --- a/tests/desktop_update_graphical.pm +++ b/tests/desktop_update_graphical.pm @@ -13,9 +13,7 @@ sub run { prepare_test_packages; # sometimes, the test is failing because it cannot # refresh packages for Gnome Software. Let's do it explicitely. - script_run "su test", 10; script_run "pkcon refresh force", 60; - script_run "exit", 10; # get back to the desktop desktop_vt; # run the updater @@ -49,9 +47,9 @@ sub run { # if this is KDE and it had already noticed the notification, we # will already have the apply button at this point unless (check_screen 'desktop_package_tool_update_apply', 5) { - # refresh updates - assert_and_click 'desktop_package_tool_update_refresh'; - wait_still_screen 20; + assert_and_click 'desktop_package_tool_update_refresh', '', 120; + } + unless (check_screen 'desktop_package_tool_update_apply', 5) { assert_and_click 'desktop_package_tool_update_refresh', '', 120; } # wait for refresh, then apply updates, using a C-style loop so we