1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-28 16:43:09 +00:00
os-autoinst-distri-fedora/tests/applications/archiver/archive.pm

43 lines
1.2 KiB
Perl
Raw Permalink Normal View History

2022-09-12 07:38:09 +00:00
use base "installedtest";
use strict;
use testapi;
use utils;
# This script will test if files in a directory can be archived
# in an archive file.
sub run {
my $self = shift;
# At first, let us click on one of the icons to get focus
# and then use ctrl-a to select all.
assert_and_click("archiver_file_one");
2022-09-12 07:38:09 +00:00
send_key("ctrl-a");
# Right click on the first of them to open the context menu.
assert_and_click("archiver_file_one", button => 'right');
wait_still_screen(3);
2022-09-12 07:38:09 +00:00
# Select to archive it.
assert_and_click("archiver_context_archive");
# Wait for the screen to appear and settle
assert_screen("archiver_format_selector");
wait_still_screen 2;
2022-09-12 07:38:09 +00:00
# Type the name for the archive
type_very_safely("archived_files");
# Open the selection of formats.
assert_and_click("archiver_format_selector");
# Select the tar.xz method
assert_and_click("archiver_select_tarxz");
# Confirm
assert_and_click("archiver_button_create");
# Assert that a file has been created in that directory (it may take some time)
assert_screen("archiver_archive_created");
}
sub test_flags {
return {fatal => 1};
}
1;
# vim: set sw=4 et: