From 5c62a909c8692310768a8b08fe00d7eaf5fa41b9 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 24 Mar 2023 11:42:19 -0700 Subject: [PATCH] Weather: handle app UI showing briefly before the access prompt Exactly the same as the change for Maps from a few days back, for the same reason. Signed-off-by: Adam Williamson --- tests/applications/weather/aaa_setup.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/applications/weather/aaa_setup.pm b/tests/applications/weather/aaa_setup.pm index a27fac46..5f9f6b79 100644 --- a/tests/applications/weather/aaa_setup.pm +++ b/tests/applications/weather/aaa_setup.pm @@ -12,6 +12,10 @@ sub run { # Start the Application menu_launch_type("weather"); assert_screen ["apps_run_weather", "grant_access"]; + # sometimes we match apps_run_weather for a split second before + # grant_access appears, so handle that + wait_still_screen 3; + assert_screen ['apps_run_weather', 'grant_access']; # give access rights if asked if (match_has_tag 'grant_access') { click_lastmatch;