From ca16b826903de63e6ce7beefb57ae836a85ac9aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Fri, 13 Jul 2018 11:29:20 +0200 Subject: [PATCH] Enhance comments and alter some waiting times. --- tests/desktop_upgrade_graphical.pm | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tests/desktop_upgrade_graphical.pm b/tests/desktop_upgrade_graphical.pm index 29fffb13..3b80d081 100644 --- a/tests/desktop_upgrade_graphical.pm +++ b/tests/desktop_upgrade_graphical.pm @@ -27,16 +27,16 @@ sub run { # mouse_hide; # } #} - + + # If a banner appears that offers enablement of third party, discard it. if (check_screen('desktop_package_tool_thirdparty_enable', 60)) { - assert_and_click 'desktop_package_tool_thirdparty_enable_cancel','left', 10; + assert_and_click 'desktop_package_tool_thirdparty_enable_cancel','left', 30; } wait_still_screen 2; - # the previous step checked the screen, now click on the update - # button - assert_and_click 'desktop_package_tool_update','left', 360; + # now click on the update button + assert_and_click 'desktop_package_tool_update','left', 120; wait_still_screen 2; # a banner should inform about new version, download it assert_and_click 'desktop_package_tool_download','left', 1800; @@ -59,16 +59,14 @@ sub run { # on GNOME, wait for reboots. if ($desktop eq 'gnome') { - # handle reboot confirm screen which pops up when user is - # logged in (but don't fail if it doesn't as we're not testing - # that) + # handle reboot confirm screen which pops up type_very_safely(get_var('USER_PASSWORD','weakpassword')); - assert_and_click('desktop_package_tool_authenticate','',30); + assert_and_click('desktop_package_tool_authenticate','',60); - assert_and_click('desktop_package_tool_restart','',30); + assert_and_click('desktop_package_tool_restart','',30); - boot_to_login_screen; + boot_to_login_screen; } else { # KDE will prompt for authentication if any package is not