1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

Write the server script to start RDP

This commit is contained in:
Lukáš Růžička 2024-09-11 10:14:45 +02:00 committed by Adam Williamson
parent 92599635e4
commit 96b6bce566

View File

@ -23,14 +23,35 @@ sub run {
# Change to Desktop
desktop_vt();
# Open Settings and switch on RDP login
# Open Settings and navigate to Remote Login
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_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 {
return {fatal => 1, milestone => 1};
return {fatal => 1};
}
1;
# vim: set sw=4 et: