From 0b210fe44c23c68139829cd6f931f8459041a56d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 22 Nov 2019 09:54:47 -0800 Subject: [PATCH] Sleep a bit before clicking the anaconda icon on live install KDE tests are quite frequently failing lately because anaconda doesn't launch. I'm hoping this will help. Signed-off-by: Adam Williamson --- tests/_boot_to_anaconda.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index 8bf8fc03..07e2c628 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -113,7 +113,11 @@ sub run { else { # on lives, we have to explicitly launch anaconda if (get_var('LIVE')) { - _assert_and_click("live_start_anaconda_icon", timeout=>300); + assert_screen "live_start_anaconda_icon", 300; + # seems that clicking as soon as we see it sometimes + # fails on KDE, so wait a bit then click it + sleep 5; + click_lastmatch; } my $language = get_var('LANGUAGE') || 'english'; # wait for anaconda to appear; we click to work around