From f5377ad1d290baca2eb312ad7d48c921f2571866 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 7 May 2021 09:47:35 -0700 Subject: [PATCH] Tweak _vnc_client_connect to click things better vinagre likes to make things move around and pop up in awkward ways... Signed-off-by: Adam Williamson --- tests/_vnc_client_connect.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/_vnc_client_connect.pm b/tests/_vnc_client_connect.pm index ec499f8c..f2e8b436 100644 --- a/tests/_vnc_client_connect.pm +++ b/tests/_vnc_client_connect.pm @@ -10,11 +10,13 @@ sub run { assert_and_click('vinagre_protocol_vnc'); send_key('tab'); type_very_safely("172.16.2.114:5901\n"); - assert_and_click('vinagre_fullscreen'); + # this panel likes to move around so make sure we really hit it + while (check_screen 'vinagre_enable_shortcuts') { + assert_and_click('vinagre_enable_shortcuts'); + sleep 2; + } assert_and_click('vinagre_allow_inhibit'); - # allow for a stupid animation to happen - wait_still_screen 5; - assert_and_click('vinagre_enable_shortcuts'); + assert_and_click('vinagre_fullscreen'); } sub test_flags {