1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-11 17:34:23 +00:00

Fix wait times.

This commit is contained in:
Lukas Ruzicka 2018-06-28 15:03:01 +02:00
parent 0f715ce1f0
commit 500835c492

View File

@ -20,6 +20,7 @@ sub run {
# this launches GNOME Software on GNOME, dunno for any other # this launches GNOME Software on GNOME, dunno for any other
# desktop yet # desktop yet
wait_still_screen 5;
menu_launch_type('update'); menu_launch_type('update');
# GNOME Software has a welcome screen, get rid of it if it shows # GNOME Software has a welcome screen, get rid of it if it shows
@ -37,25 +38,23 @@ sub run {
} }
} }
# a banner informs about new version, download it # a banner informs about new version, download it
assert_and_click 'desktop_package_tool_download'; assert_and_click 'desktop_package_tool_download', 60;
wait_still_screen 5;
assert_and_click 'desktop_package_tool_install', 300;
# wait for refresh, then apply updates, using a C-style loop so we # wait for refresh, then apply updates, using a C-style loop so we
# can reset it if needed due to RHBZ #1314991 # can reset it if needed due to RHBZ #1314991
for (my $n = 1; $n < 6; $n++) { #for (my $n = 1; $n < 6; $n++) {
# Check if we see the 'cancelled by user action' error we get # Check if we see the 'cancelled by user action' error we get
# when #1314991 happens, if so, refresh and restart the loop # when #1314991 happens, if so, refresh and restart the loop
if (check_screen 'desktop_package_tool_install', 1) {
#sleep 100; #sleep 100;
$n = 1; # $n = 1;
} # }
last if (assert_and_click 'desktop_package_tool_install', 120); # last if (assert_and_click 'desktop_package_tool_install', 120);
mouse_set 10, 10; # mouse_set 10, 10;
mouse_hide; # mouse_hide;
} # }
# KDE annoyingly pops the notification up right over the install
# button, which doesn't help...wait for it to go away. Let's also
# wait on GNOME, as we've had tests fail at this point for no
# obvious reason, a wait may help.
wait_still_screen 5; wait_still_screen 5;
assert_and_click 'desktop_package_tool_install'; assert_and_click 'desktop_package_tool_install';
# on GNOME, wait for reboots. # on GNOME, wait for reboots.