From dc1f3dcdf3ec0ff366c14b76ef73caa6300e6067 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 6 May 2016 13:15:13 -0700 Subject: [PATCH] wait_still_screen after install completes This should be a better fix for the problem of the install_done needle matching in the sidebar gradient while the button is transitioning. We just assert_screen first, then once we hit it, we wait_still_screen for 3 seconds, then assert_and_click the button. --- tests/_do_install_and_reboot.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index 360a0e07..d7f8eda5 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -54,7 +54,10 @@ sub run { if (lc(get_var('VERSION')) eq "rawhide") { $timeout = 2400; } - assert_and_click "anaconda_install_done", '', $timeout; + assert_screen "anaconda_install_done", '', $timeout; + # wait for transition to complete so we don't click in the sidebar + wait_still_screen 3; + assert_and_click "anaconda_install_done"; if (get_var('LIVE')) { x11_start_program("reboot"); }