1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-22 15:07:22 +00:00

Maps: handle app UI showing briefly before the access prompt

See e.g. https://openqa.fedoraproject.org/tests/1829593
sometimes we see the app UI briefly before the access prompt
appears. Handle that case by waiting a few seconds and doing
the match again.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2023-03-17 09:19:35 -07:00
parent c9a0cab6ec
commit 96118b4b60

View File

@ -13,6 +13,10 @@ sub run {
menu_launch_type("Maps");
# Check it has started, or we got the permission prompt
assert_screen ['apps_run_maps', 'grant_access'];
# sometimes we match apps_run_maps for a split second before
# grant_access appears, so handle that
wait_still_screen 3;
assert_screen ['apps_run_maps', 'grant_access'];
if (match_has_tag 'grant_access') {
click_lastmatch;
assert_screen 'apps_run_maps';