1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-22 02:13:08 +00:00

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 <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-03-24 11:42:19 -07:00
parent a9fcc1071e
commit 5c62a909c8

View File

@ -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;