From cf709af13c79368f3c44e1286304e8012e099ba7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 25 Jul 2019 14:13:28 -0700 Subject: [PATCH] cockpit: retry the 'services entry' click if it fails cockpit test often seems to fail because the click on a services entry to open the services detail screen just gets lost. Let's wait longer before trying it, and retry once if it fails. Signed-off-by: Adam Williamson --- tests/server_cockpit_basic.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/server_cockpit_basic.pm b/tests/server_cockpit_basic.pm index f4a60b7a..80747c8a 100644 --- a/tests/server_cockpit_basic.pm +++ b/tests/server_cockpit_basic.pm @@ -23,7 +23,9 @@ sub run { wait_still_screen 2; # click on an entry assert_and_click "cockpit_services_entry"; - # check we get to a detail screen + # check we get to the appropriate detail screen...but this click + # often gets lost for some reason, so retry it once + assert_and_click "cockpit_services_entry" unless (check_screen "cockpit_services_detail"); assert_screen "cockpit_services_detail"; }