1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-09-09 01:57:22 +00:00
os-autoinst-distri-fedora/tests/applications/maps/zoom.pm
Adam Williamson caa4353fe0 maps: add some sleeps to the zoom test
These loops make us click extremely fast. This may cause
unreliable results, I think. At least, the test is failing a
lot lately, with results that look like it's not always getting
the expected four levels of zoom. Let's try a short sleep
between clicks.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-02-16 17:52:19 -08:00

38 lines
749 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)) {
sleep 1;
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)) {
sleep 1;
click_lastmatch();
}
assert_screen("maps_found_brno", timeout => 60);
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: