1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-27 12:43:08 +00:00
os-autoinst-distri-fedora/tests/applications/gnome-panel/lockscreen.pm
2023-04-06 15:50:43 -07:00

34 lines
764 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This part of the suite Tests that the panel
# can be used to lock the screen.
sub run {
my $self = shift;
# Click on the controls.
assert_and_click("panel_controls");
# Click on Lock screen button to lock the screen
assert_and_click("panel_ctrl_lockscreen");
# When the screen locks, wait 5 seconds and then
# hit enter to get the login prompt and check that
# the prompt is visible. The test can be finished
# here and rolled back because we test the login
# process elsewhere.
sleep 5;
send_key("ret");
send_key("up");
assert_screen("panel_screen_locked");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: