From 51e7b28978f8576802ca4eab79121b8315f326ec Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 28 Apr 2023 15:57:46 -0700 Subject: [PATCH] Correct 'grant_access' needle name in several tests Several tests still had the old 'apps_run_access' name which we changed some time ago, so these safety checks weren't working. Signed-off-by: Adam Williamson --- tests/apps_startstop/gnome/calendar.pm | 4 ++-- tests/apps_startstop/gnome/clocks.pm | 4 ++-- tests/apps_startstop/gnome/maps.pm | 4 ++-- tests/apps_startstop/gnome/weather.pm | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/apps_startstop/gnome/calendar.pm b/tests/apps_startstop/gnome/calendar.pm index 77ade6ff..ba337957 100644 --- a/tests/apps_startstop/gnome/calendar.pm +++ b/tests/apps_startstop/gnome/calendar.pm @@ -12,8 +12,8 @@ sub run { start_with_launcher('apps_menu_calendar'); # give access to location if the vm asks for it - if (check_screen('apps_run_access', 1)) { - assert_and_click 'apps_run_access'; + if (check_screen('grant_access', 1)) { + assert_and_click 'grant_access'; } wait_still_screen 2; assert_screen 'apps_run_calendar'; diff --git a/tests/apps_startstop/gnome/clocks.pm b/tests/apps_startstop/gnome/clocks.pm index 9d157dd5..895b7463 100644 --- a/tests/apps_startstop/gnome/clocks.pm +++ b/tests/apps_startstop/gnome/clocks.pm @@ -9,9 +9,9 @@ sub run { my $self = shift; # Start the application start_with_launcher('apps_menu_clocks'); - assert_screen ["apps_run_clocks", "apps_run_access"]; + assert_screen ["apps_run_clocks", "grant_access"]; # give access rights if asked - if (match_has_tag 'apps_run_access') { + if (match_has_tag 'grant_access') { click_lastmatch; assert_screen 'apps_run_clocks'; } diff --git a/tests/apps_startstop/gnome/maps.pm b/tests/apps_startstop/gnome/maps.pm index 3bb8c6b7..ed00973e 100644 --- a/tests/apps_startstop/gnome/maps.pm +++ b/tests/apps_startstop/gnome/maps.pm @@ -12,8 +12,8 @@ sub run { start_with_launcher('apps_menu_maps'); # Check that is started # give access rights if asked - if (check_screen('apps_run_access', 1)) { - assert_and_click 'apps_run_access'; + if (check_screen('grant_access', 1)) { + assert_and_click 'grant_access'; } assert_screen 'apps_run_maps'; # Register application diff --git a/tests/apps_startstop/gnome/weather.pm b/tests/apps_startstop/gnome/weather.pm index 71f14693..f973eae9 100644 --- a/tests/apps_startstop/gnome/weather.pm +++ b/tests/apps_startstop/gnome/weather.pm @@ -10,8 +10,8 @@ sub run { # start the application start_with_launcher('apps_menu_weather'); # give access rights if asked - if (check_screen('apps_run_access', 1)) { - assert_and_click 'apps_run_access'; + if (check_screen('grant_access', 1)) { + assert_and_click 'grant_access'; } wait_still_screen 2; assert_screen 'apps_run_weather';