mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-30 17:06:24 +00:00
AlanMarshall
f6b823d5c6
From upstream: support functions added to lib/utils.pm clocks functions directory added in tests/applications/ minor correction in ...evince/aaa_setup.pm
48 lines
1.2 KiB
Perl
48 lines
1.2 KiB
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This script will start the Gnome Clocks application and save the status
|
|
# for any subsequent tests.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
|
|
# At first, we need to set time and time zones manually.
|
|
$self->root_console(tty => 3);
|
|
# Switch off automatic time.
|
|
assert_script_run("timedatectl set-ntp 0");
|
|
# Set the time zone
|
|
assert_script_run("timedatectl set-timezone Europe/Prague");
|
|
# Set the time and date
|
|
assert_script_run("timedatectl set-time '2022-09-09 09:00:00'");
|
|
# Return back
|
|
desktop_vt();
|
|
|
|
# Set the update notification timestamp
|
|
set_update_notification_timestamp();
|
|
|
|
# Start the Application
|
|
menu_launch_type("clocks");
|
|
assert_screen ["apps_run_clocks", "grant_access"];
|
|
# give access rights if asked
|
|
if (match_has_tag 'grant_access') {
|
|
click_lastmatch;
|
|
assert_screen 'apps_run_clocks';
|
|
}
|
|
|
|
# Make it fill the entire window.
|
|
send_key("super-up");
|
|
wait_still_screen(2);
|
|
}
|
|
|
|
sub test_flags {
|
|
# If this test fails, there is no need to continue.
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|