From caa4353fe01bd17a465ffc0dcfbacbba807c389e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 16 Feb 2024 17:52:19 -0800 Subject: [PATCH] maps: add some sleeps to the zoom test These loops make us click extremely fast. This may cause unreliable results, I think. At least, the test is failing a lot lately, with results that look like it's not always getting the expected four levels of zoom. Let's try a short sleep between clicks. Signed-off-by: Adam Williamson --- tests/applications/maps/zoom.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/applications/maps/zoom.pm b/tests/applications/maps/zoom.pm index 2de4e230..4096c134 100644 --- a/tests/applications/maps/zoom.pm +++ b/tests/applications/maps/zoom.pm @@ -12,6 +12,7 @@ sub run { # Zoom in several times and check for zoomed map. assert_and_click("maps_button_zoom_in"); foreach (my @counter = (1 .. 4)) { + sleep 1; click_lastmatch(); } assert_screen("maps_map_zoomed", timeout => 60); @@ -20,6 +21,7 @@ sub run { # Zoom out several times and check for zoomed out map. assert_and_click("maps_button_zoom_out"); foreach (my @counter = (1 .. 4)) { + sleep 1; click_lastmatch(); } assert_screen("maps_found_brno", timeout => 60);