mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 14:03:09 +00:00
179764d49c
* Scarborough provided quite a messy map that resulted in frequent needle failure. Changing the location for something better to make it more reliable. * The zoom test could have failed with a low resolution image. Adding some timeout to the needle give more time to load the proper image.
36 lines
700 B
Perl
36 lines
700 B
Perl
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)) {
|
|
click_lastmatch();
|
|
}
|
|
assert_screen("maps_map_zoomed", timeout => 60);
|
|
|
|
|
|
# Zoom out several times and check for zoomed out map.
|
|
assert_and_click("maps_button_zoom_out");
|
|
foreach (my @counter = (1 .. 4)) {
|
|
click_lastmatch();
|
|
}
|
|
assert_screen("maps_found_brno");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {always_rollback => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|
|
|