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

Update tests.

This commit is contained in:
Lukas Ruzicka 2018-06-28 14:05:56 +02:00
parent 350ab09ee5
commit 6d3dc64f6d
2 changed files with 16 additions and 19 deletions

View File

@ -43,7 +43,8 @@ sub run {
# 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', '', 240;
sleep 30;
assert_and_click 'desktop_package_tool_update_refresh', '', 120;
}
# wait for refresh, then apply updates, using a C-style loop so we
# can reset it if needed due to RHBZ #1314991

View File

@ -7,23 +7,19 @@ use packagetest;
sub run {
my $self = shift;
my $desktop = get_var('DESKTOP');
# use a tty console for repo config and package prep
$self->root_console(tty=>3);
assert_script_run 'dnf config-manager --set-disabled updates-testing';
prepare_test_packages;
# get back to the desktop
desktop_vt;
# run the updater
if ($desktop eq 'kde') {
# KDE team tells me the 'preferred' update method is the
# systray applet
assert_and_click 'desktop_expand_systray';
}
else {
# this launches GNOME Software on GNOME, dunno for any other
# desktop yet
menu_launch_type('update');
}
# login onto the system
assert_screen "graphical_login";
send_key "ret";
assert_screen "graphical_login_input";
my $password = get_var("USER_PASSWORD", "weakpassword");
type_very_safely $password;
send_key "ret";
# this launches GNOME Software on GNOME, dunno for any other
# desktop yet
menu_launch_type('update');
# GNOME Software has a welcome screen, get rid of it if it shows
# up (but don't fail if it doesn't, we're not testing that)
if ($desktop eq 'gnome' && check_screen 'gnome_software_welcome', 10) {
@ -59,7 +55,7 @@ sub run {
# wait on GNOME, as we've had tests fail at this point for no
# obvious reason, a wait may help.
wait_still_screen 5;
assert_and_click 'desktop_package_tool_update_apply';
assert_and_click 'desktop_package_tool_install';
# on GNOME, wait for reboots.
if ($desktop eq 'gnome') {
# handle reboot confirm screen which pops up when user is