1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-09-05 22:15:54 +00:00
os-autoinst-distri-fedora/tests/apps_startstop/gnome/clocks/stopwatch.pm
2019-03-14 16:22:37 +01:00

38 lines
805 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# Use stopwatch.
sub run {
my $self = shift;
# Click on Stopwatch
assert_and_click 'clocks_button_stopwatch';
wait_still_screen 2;
# Start stopwatch
assert_and_click 'clocks_button_start';
sleep 20;
assert_and_click 'clocks_button_stop';
# Check that the stopwatch has run
assert_screen 'clocks_check_twenty';
# Continue stopwatch
assert_and_click 'clocks_button_continue';
sleep 10;
assert_and_click 'clocks_button_stop';
# Check that it has run
assert_screen 'clocks_check_thirty';
# Reset the stopwatch
assert_and_click 'clocks_button_reset';
assert_screen 'clocks_check_reset';
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: