mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-16 20:44:31 +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:
parent
c9a0cab6ec
commit
96118b4b60
@ -13,6 +13,10 @@ sub run {
|
|||||||
menu_launch_type("Maps");
|
menu_launch_type("Maps");
|
||||||
# Check it has started, or we got the permission prompt
|
# Check it has started, or we got the permission prompt
|
||||||
assert_screen ['apps_run_maps', 'grant_access'];
|
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') {
|
if (match_has_tag 'grant_access') {
|
||||||
click_lastmatch;
|
click_lastmatch;
|
||||||
assert_screen 'apps_run_maps';
|
assert_screen 'apps_run_maps';
|
||||||
|
Loading…
Reference in New Issue
Block a user