mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-13 18:24:24 +00:00
Update tests.
This commit is contained in:
parent
350ab09ee5
commit
6d3dc64f6d
@ -43,7 +43,8 @@ sub run {
|
|||||||
# will already have the apply button at this point
|
# will already have the apply button at this point
|
||||||
unless (check_screen 'desktop_package_tool_update_apply', 5) {
|
unless (check_screen 'desktop_package_tool_update_apply', 5) {
|
||||||
# refresh updates
|
# 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
|
# 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
|
||||||
|
@ -7,23 +7,19 @@ use packagetest;
|
|||||||
sub run {
|
sub run {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $desktop = get_var('DESKTOP');
|
my $desktop = get_var('DESKTOP');
|
||||||
# use a tty console for repo config and package prep
|
|
||||||
$self->root_console(tty=>3);
|
# login onto the system
|
||||||
assert_script_run 'dnf config-manager --set-disabled updates-testing';
|
assert_screen "graphical_login";
|
||||||
prepare_test_packages;
|
send_key "ret";
|
||||||
# get back to the desktop
|
assert_screen "graphical_login_input";
|
||||||
desktop_vt;
|
my $password = get_var("USER_PASSWORD", "weakpassword");
|
||||||
# run the updater
|
type_very_safely $password;
|
||||||
if ($desktop eq 'kde') {
|
send_key "ret";
|
||||||
# KDE team tells me the 'preferred' update method is the
|
|
||||||
# systray applet
|
# this launches GNOME Software on GNOME, dunno for any other
|
||||||
assert_and_click 'desktop_expand_systray';
|
# desktop yet
|
||||||
}
|
menu_launch_type('update');
|
||||||
else {
|
|
||||||
# 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
|
# 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)
|
# up (but don't fail if it doesn't, we're not testing that)
|
||||||
if ($desktop eq 'gnome' && check_screen 'gnome_software_welcome', 10) {
|
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
|
# wait on GNOME, as we've had tests fail at this point for no
|
||||||
# obvious reason, a wait may help.
|
# obvious reason, a wait may help.
|
||||||
wait_still_screen 5;
|
wait_still_screen 5;
|
||||||
assert_and_click 'desktop_package_tool_update_apply';
|
assert_and_click 'desktop_package_tool_install';
|
||||||
# on GNOME, wait for reboots.
|
# on GNOME, wait for reboots.
|
||||||
if ($desktop eq 'gnome') {
|
if ($desktop eq 'gnome') {
|
||||||
# handle reboot confirm screen which pops up when user is
|
# handle reboot confirm screen which pops up when user is
|
||||||
|
Loading…
Reference in New Issue
Block a user