mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 07:13:09 +00:00
Enable user switching for KDE too
This commit is contained in:
parent
fead784087
commit
b8cda9cfda
@ -287,41 +287,36 @@ sub run {
|
|||||||
login_user(user=>"jim", password=>$jimpass, method=>"unlock");
|
login_user(user=>"jim", password=>$jimpass, method=>"unlock");
|
||||||
|
|
||||||
# Switch user tests
|
# Switch user tests
|
||||||
if ($desktop eq "gnome") {
|
#
|
||||||
# Because KDE at the moment (20200403) is very unreliable concerning switching the users inside
|
# Start a terminal session to monitor on which sessions we are, when we start switching users.
|
||||||
# the virtual machine, we will skip this part, until situation is better. Switching users will
|
# This time, we will open the terminal window manually because we want to leave it open later.
|
||||||
# be only tested in Gnome.
|
menu_launch_type "terminal";
|
||||||
|
wait_still_screen 2;
|
||||||
# Start a terminal session to monitor on which sessions we are, when we start switching users.
|
# Initiate switch user
|
||||||
# This time, we will open the terminal window manually because we want to leave it open later.
|
switch_user();
|
||||||
menu_launch_type "terminal";
|
# Now, we get a new login screen, so let's do the login into the new session.
|
||||||
wait_still_screen 2;
|
login_user(user=>"jack", password=>$jackpass);
|
||||||
# Initiate switch user
|
# Check that it is a new session, the terminal window should not be visible.
|
||||||
switch_user();
|
if (check_screen "user_confirm_jim") {
|
||||||
# Now, we get a new login screen, so let's do the login into the new session.
|
die "The session was not switched!";
|
||||||
login_user(user=>"jack", password=>$jackpass);
|
}
|
||||||
# Check that it is a new session, the terminal window should not be visible.
|
else {
|
||||||
if (check_screen "user_confirm_jim") {
|
|
||||||
die "The session was not switched!";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
check_user_logged_in("jack");
|
|
||||||
}
|
|
||||||
# Log out the user.
|
|
||||||
logout_user();
|
|
||||||
# Now, let us log into the original session, this time, the terminal window
|
|
||||||
# should still be visible.
|
|
||||||
login_user(user=>"jim", password=>$jimpass);
|
|
||||||
assert_screen "user_confirm_jim";
|
|
||||||
|
|
||||||
# We will also test another alternative - switching the user from
|
|
||||||
# a locked screen.
|
|
||||||
lock_screen();
|
|
||||||
send_key "ret";
|
|
||||||
switch_user();
|
|
||||||
login_user(user=>"jack", password=>$jackpass);
|
|
||||||
check_user_logged_in("jack");
|
check_user_logged_in("jack");
|
||||||
}
|
}
|
||||||
|
# Log out the user.
|
||||||
|
logout_user();
|
||||||
|
# Now, let us log into the original session, this time, the terminal window
|
||||||
|
# should still be visible.
|
||||||
|
login_user(user=>"jim", password=>$jimpass);
|
||||||
|
assert_screen "user_confirm_jim";
|
||||||
|
|
||||||
|
# We will also test another alternative - switching the user from
|
||||||
|
# a locked screen.
|
||||||
|
lock_screen();
|
||||||
|
send_key "ret";
|
||||||
|
switch_user();
|
||||||
|
login_user(user=>"jack", password=>$jackpass);
|
||||||
|
check_user_logged_in("jack");
|
||||||
# Power off the machine
|
# Power off the machine
|
||||||
power_off();
|
power_off();
|
||||||
check_shutdown;
|
check_shutdown;
|
||||||
|
Loading…
Reference in New Issue
Block a user