2022-09-27 17:54:40 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This script will test if Maps can zoom in and out.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $location = shift;
|
|
|
|
my $softfail = 0;
|
|
|
|
|
|
|
|
# Zoom in several times and check for zoomed map.
|
|
|
|
assert_and_click("maps_button_zoom_in");
|
|
|
|
foreach (my @counter = (1 .. 4)) {
|
2024-02-17 01:52:19 +00:00
|
|
|
sleep 1;
|
2022-09-27 17:54:40 +00:00
|
|
|
click_lastmatch();
|
|
|
|
}
|
2022-12-07 09:37:38 +00:00
|
|
|
assert_screen("maps_map_zoomed", timeout => 60);
|
2022-09-27 17:54:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Zoom out several times and check for zoomed out map.
|
|
|
|
assert_and_click("maps_button_zoom_out");
|
|
|
|
foreach (my @counter = (1 .. 4)) {
|
2024-02-17 01:52:19 +00:00
|
|
|
sleep 1;
|
2022-09-27 17:54:40 +00:00
|
|
|
click_lastmatch();
|
|
|
|
}
|
2023-03-13 11:04:34 +00:00
|
|
|
assert_screen("maps_found_brno", timeout => 60);
|
2022-09-27 17:54:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {always_rollback => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|