From 894851fd87fcf718715d5ffd36f043b7d0a8807d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Wed, 11 Sep 2024 10:14:45 +0200 Subject: [PATCH] Write the server script to start RDP --- tests/remote_desktop_server.pm | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/tests/remote_desktop_server.pm b/tests/remote_desktop_server.pm index d09a2e6a..12f192c4 100644 --- a/tests/remote_desktop_server.pm +++ b/tests/remote_desktop_server.pm @@ -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: