From 8bc74fd5dcccc23d6deabe652b34770a7648d1a3 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 14 Apr 2023 13:54:37 -0700 Subject: [PATCH] panel: also handle permission request for Clocks Signed-off-by: Adam Williamson --- tests/applications/gnome-panel/timedate.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/applications/gnome-panel/timedate.pm b/tests/applications/gnome-panel/timedate.pm index 243cca2f..f7a44855 100644 --- a/tests/applications/gnome-panel/timedate.pm +++ b/tests/applications/gnome-panel/timedate.pm @@ -27,7 +27,11 @@ sub run { # Check that when we click on World Clocks area # the clock application will be shown. assert_and_click("panel_add_world_clocks"); - assert_and_click("apps_run_clocks"); + assert_screen(["apps_run_clocks", "grant_access"]); + click_lastmatch; + if (match_has_tag("grant_access")) { + assert_and_click("apps_run_clocks"); + } send_key("alt-f4"); wait_still_screen(2); #