1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-14 10:44:22 +00:00
os-autoinst-distri-fedora/tests/applications/maps/scale.pm
2022-11-21 18:17:11 +00:00

35 lines
714 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This script will test if Maps can toggle a scale information
# in the bottom left corner.
sub run {
my $location = shift;
# Zoom in several times and check for zoomed map.
assert_screen("maps_scale_on");
# Switch it of
assert_and_click("maps_button_overlays");
assert_and_click("maps_switch_scale");
wait_still_screen(2);
assert_screen("maps_scale_off");
# Switch it on again
assert_and_click("maps_button_overlays");
assert_and_click("maps_switch_scale");
wait_still_screen(2);
assert_screen("maps_scale_on");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: