mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-23 06:23:09 +00:00
Save more progress.
This commit is contained in:
parent
3acc8cfe42
commit
f57655fa93
@ -9,16 +9,16 @@ sub run {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
# Check that the picture name is shown
|
# Check that the picture name is shown
|
||||||
assert_screen "loupe_picture_name";
|
assert_screen "gwen_picture_name";
|
||||||
|
|
||||||
# Check that the Side panel is visible, try to make it visible if it is not.
|
# Check that the Side panel is visible, try to make it visible if it is not.
|
||||||
if (!check_screen("loupe_side_panel")) {
|
if (!check_screen("gwen_side_panel")) {
|
||||||
send_key("f9");
|
send_key("f4");
|
||||||
}
|
}
|
||||||
assert_screen("loupe_side_panel");
|
assert_screen("gwen_side_panel");
|
||||||
|
|
||||||
# Check that info on side panel is correct
|
# Check that info on side panel is correct
|
||||||
assert_screen("loupe_img_info");
|
assert_screen("gwen_img_info");
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
|
@ -12,10 +12,14 @@ sub run {
|
|||||||
wait_still_screen 3;
|
wait_still_screen 3;
|
||||||
# Go to next picture.
|
# Go to next picture.
|
||||||
send_key("right");
|
send_key("right");
|
||||||
assert_screen("loupe_image_next", timeout => 90);
|
assert_screen("gwen_image_next", timeout => 90);
|
||||||
# Go to previous picture
|
# Go to previous picture
|
||||||
send_key("left");
|
send_key("left");
|
||||||
assert_and_click("loupe_image_default", timeout => 90);
|
assert_and_click("gwen_image_default", timeout => 90);
|
||||||
|
# Show the browse menu
|
||||||
|
assert_and_click("gwen_show_browse");
|
||||||
|
# Check it
|
||||||
|
assert_screen("gwen_browse_shown");
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
|
@ -9,14 +9,14 @@ sub run {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
# Toggle full screen
|
# Toggle full screen
|
||||||
send_key("f11");
|
send_key("ctrl-shift-f");
|
||||||
wait_still_screen 2;
|
wait_still_screen 2;
|
||||||
assert_screen("loupe_fullscreen_on");
|
assert_screen("gwen_fullscreen_on");
|
||||||
|
|
||||||
# Return to normal mode
|
# Return to normal mode
|
||||||
send_key("f11");
|
send_key("ctrl-shift-f");
|
||||||
wait_still_screen 2;
|
wait_still_screen 2;
|
||||||
assert_screen("loupe_image_default");
|
assert_screen("gwen_image_default");
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
|
@ -11,10 +11,7 @@ sub run {
|
|||||||
|
|
||||||
# Open the shortcuts
|
# Open the shortcuts
|
||||||
send_key("f1");
|
send_key("f1");
|
||||||
assert_screen("loupe_help_shown", timeout => 120);
|
assert_screen("gwen_help_shown", timeout => 120);
|
||||||
# Try another screen
|
|
||||||
assert_and_click("loupe_help_image_view", timeout => 60);
|
|
||||||
assert_screen("loupe_help_view_shown");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
use base "installedtest";
|
|
||||||
use strict;
|
|
||||||
use testapi;
|
|
||||||
use utils;
|
|
||||||
|
|
||||||
# This part tests if the application can put an image as a wallpaper.
|
|
||||||
|
|
||||||
sub run {
|
|
||||||
my $self = shift;
|
|
||||||
sleep 2;
|
|
||||||
|
|
||||||
# Go to the menu
|
|
||||||
send_key("f10");
|
|
||||||
# Set as background
|
|
||||||
assert_and_click("loupe_menu_set_wallpaper");
|
|
||||||
wait_still_screen(2);
|
|
||||||
# Confirm
|
|
||||||
assert_and_click("loupe_set_wallpaper");
|
|
||||||
wait_still_screen(2);
|
|
||||||
# Close the application
|
|
||||||
send_key("alt-f4");
|
|
||||||
# Check that the wallpaper was set
|
|
||||||
assert_screen("loupe_image_background");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
sub test_flags {
|
|
||||||
return {always_rollback => 1};
|
|
||||||
}
|
|
||||||
|
|
||||||
1;
|
|
||||||
|
|
||||||
# vim: set sw=4 et:
|
|
Loading…
Reference in New Issue
Block a user