mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 14:03:09 +00:00
1a65993d36
Signed-off-by: Adam Williamson <awilliam@redhat.com>
40 lines
853 B
Perl
40 lines
853 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This part tests if the application can save the image as a different file.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
sleep 2;
|
|
assert_screen("eog_image_default");
|
|
|
|
# Shift-ctrl-S to save a file as a new file.
|
|
send_key("shift-ctrl-s");
|
|
wait_still_screen(3);
|
|
|
|
# Type the new name, this should be possible without any intervention.
|
|
type_very_safely("new_image");
|
|
# Hit enter to confirm
|
|
send_key("ret");
|
|
wait_still_screen("2");
|
|
|
|
# Go to console
|
|
$self->root_console(tty => 3);
|
|
|
|
# List the location
|
|
assert_script_run("ls /home/test/Pictures/");
|
|
|
|
# Compare the files
|
|
assert_script_run("diff /home/test/Pictures/leaves.jpg /home/test/Pictures/new_image.jpg");
|
|
}
|
|
|
|
sub test_flags {
|
|
return {always_rollback => 1};
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|