Skip to content

Commit

Permalink
Fix test cases for desktopapps-gnome
Browse files Browse the repository at this point in the history
  • Loading branch information
alapha23 committed Nov 9, 2018
1 parent 7b66c11 commit d1ec225
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions tests/x11/gnomecase/change_password.pm
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ sub reboot_system {
reboot_x11;
$self->{await_reboot} = 1;
$self->wait_boot(nologin => 1);
assert_screen "displaymanager", 200;
$self->{await_reboot} = 0;
# The keyboard focus is different between SLE15 and SLE12
send_key 'up' if sle_version_at_least('15');
send_key "ret";
wait_still_screen;
type_string "$newpwd\n";
if (!is_tumbleweed) {
assert_screen "displaymanager", 200;
$self->{await_reboot} = 0;
# The keyboard focus is different between SLE15 and SLE12
send_key 'up' if sle_version_at_least('15');
send_key "ret";
wait_still_screen;
type_string "$newpwd\n";
}
assert_screen "generic-desktop";
}

Expand Down Expand Up @@ -113,7 +115,11 @@ sub run {
#verify changed password work well in the following scenario:
lock_screen;
logout_and_login;
$self->reboot_system;
$self->reboot_system;
if (is_tumbleweed && !get_var('NOAUTOLOGIN')) {
set_var('NOAUTOLOGIN', 1);
$self->auto_login_alter;
}

#swtich to new added user then switch back
switch_user;
Expand Down

0 comments on commit d1ec225

Please sign in to comment.