1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-24 23:03:08 +00:00
os-autoinst-distri-fedora/tests/applications/gnome-panel/screenshot.pm

31 lines
759 B
Perl
Raw Normal View History

2022-10-13 13:01:53 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This part of the suite tests if the screenshot can be taken
# using the controls on the panel.
sub run {
my $self = shift;
# Open the controls
assert_and_click("panel_controls");
# Take a screenshot
assert_and_click("panel_ctrl_screenshot");
assert_and_click("panel_screenshot_screen");
assert_and_click("panel_screenshot_trigger");
# Check that the screenshot has been saved
$self->root_console(tty => 3);
# Confirm PNG files in the Screenshot directory
my $user = get_var("USER_LOGIN") // "test";
assert_script_run("ls /home/$user/Pictures/Screenshots/*.png");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: