From 41aed12b16fcbd4daf9a0416108337bba1905e74 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 27 Apr 2020 12:04:00 -0700 Subject: [PATCH] Handle Boxes tutorial screen in _vnc_client_connect We can get tripped up by the tutorial screen when launching Boxes; borrow some code from the app start/stop test to check for and handle it. Signed-off-by: Adam Williamson --- tests/_vnc_client_connect.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/_vnc_client_connect.pm b/tests/_vnc_client_connect.pm index e1bf6091..bf2b415d 100644 --- a/tests/_vnc_client_connect.pm +++ b/tests/_vnc_client_connect.pm @@ -12,6 +12,11 @@ sub run { assert_script_run "ping -c 2 10.0.2.114"; desktop_vt; menu_launch_type('boxes'); + assert_screen ['apps_boxes_tutorial', 'boxes_new_connection']; + if (match_has_tag 'apps_boxes_tutorial') { + # Let us get rid of the Tutorial window. + send_key 'esc'; + } assert_and_click('boxes_new_connection'); assert_and_click('boxes_remote'); type_very_safely("vnc://10.0.2.114:5901\n");