mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-27 16:13:09 +00:00
Write the server script to start RDP
This commit is contained in:
parent
9b9142b04a
commit
894851fd87
@ -23,14 +23,35 @@ sub run {
|
|||||||
# Change to Desktop
|
# Change to Desktop
|
||||||
desktop_vt();
|
desktop_vt();
|
||||||
|
|
||||||
# Open Settings and switch on RDP login
|
# Open Settings and navigate to Remote Login
|
||||||
menu_launch_type("Settings");
|
menu_launch_type("Settings");
|
||||||
assert_and_click("settings_submenu_system");
|
assert_and_click("gnome_icon_search");
|
||||||
|
type_very_safely("system");
|
||||||
|
assert_and_click("settings_system");
|
||||||
assert_and_click("settings_remote_desktop");
|
assert_and_click("settings_remote_desktop");
|
||||||
assert_and_click("settings_remote_login");
|
assert_and_click("settings_remote_login");
|
||||||
|
assert_and_click("gnome_button_unlock");
|
||||||
|
if (check_screen("auth_required_password", timeout => 60)) {
|
||||||
|
type_very_safely("$password\n");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
die("Authentication dialogue is not visible but was expected.");
|
||||||
|
}
|
||||||
|
|
||||||
|
# Set up remote login in Gnome Settings.
|
||||||
|
assert_and_click("settings_switch_remote");
|
||||||
|
wait_still_screen(3);
|
||||||
|
assert_and_click("settings_remote_username");
|
||||||
|
type_very_safely("remotee");
|
||||||
|
assert_and_click("settings_remote_password");
|
||||||
|
type_very_safely("opensesame");
|
||||||
|
assert_and_click("gnome_reveil_password");
|
||||||
|
wait_still_screen(3);
|
||||||
|
send_key("alt-f4");
|
||||||
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
return {fatal => 1, milestone => 1};
|
return {fatal => 1};
|
||||||
}
|
}
|
||||||
1;
|
1;
|
||||||
# vim: set sw=4 et:
|
# vim: set sw=4 et:
|
||||||
|
Loading…
Reference in New Issue
Block a user