mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-02-21 06:44:32 +00:00
Make the test parts more defensive.
This commit is contained in:
parent
a26d39e104
commit
3f1a48fff8
@ -10,11 +10,14 @@ sub run {
|
|||||||
|
|
||||||
# Open the menu
|
# Open the menu
|
||||||
assert_and_click("gnome_burger_menu");
|
assert_and_click("gnome_burger_menu");
|
||||||
|
wait_still_screen(3);
|
||||||
# Click on the About item
|
# Click on the About item
|
||||||
assert_and_click("eog_menu_about");
|
assert_and_click("eog_menu_about");
|
||||||
|
wait_still_screen(3);
|
||||||
assert_screen("eog_about_shown");
|
assert_screen("eog_about_shown");
|
||||||
# Click on Credits
|
# Click on Credits
|
||||||
assert_and_click("eog_about_credits");
|
assert_and_click("eog_about_credits");
|
||||||
|
wait_still_screen(2);
|
||||||
assert_screen("eog_credits_shown");
|
assert_screen("eog_credits_shown");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ sub run {
|
|||||||
# 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("eog_side_panel")) {
|
if (!check_screen("eog_side_panel")) {
|
||||||
send_key("f9");
|
send_key("f9");
|
||||||
|
wait_still_screen(2);
|
||||||
}
|
}
|
||||||
assert_screen("eog_side_panel");
|
assert_screen("eog_side_panel");
|
||||||
|
|
||||||
|
@ -10,9 +10,11 @@ sub run {
|
|||||||
|
|
||||||
# Go to next picture.
|
# Go to next picture.
|
||||||
send_key("right");
|
send_key("right");
|
||||||
|
wait_still_screen(2);
|
||||||
assert_screen("eog_image_next");
|
assert_screen("eog_image_next");
|
||||||
# Go to previous picture
|
# Go to previous picture
|
||||||
send_key("left");
|
send_key("left");
|
||||||
|
wait_still_screen;
|
||||||
assert_and_click("eog_image_default");
|
assert_and_click("eog_image_default");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,9 +11,11 @@ sub run {
|
|||||||
|
|
||||||
# Open the shortcuts
|
# Open the shortcuts
|
||||||
send_key("f1");
|
send_key("f1");
|
||||||
|
wait_still_screen(3);
|
||||||
assert_screen("eog_help_shown");
|
assert_screen("eog_help_shown");
|
||||||
# Try another screen
|
# Try another screen
|
||||||
assert_and_click("eog_help_image_zoom");
|
assert_and_click("eog_help_image_zoom");
|
||||||
|
wait_still_screen(2);
|
||||||
assert_screen("eog_help_zoom_shown");
|
assert_screen("eog_help_zoom_shown");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,9 +10,11 @@ sub run {
|
|||||||
|
|
||||||
# Rotate left
|
# Rotate left
|
||||||
send_key("shift-ctrl-r");
|
send_key("shift-ctrl-r");
|
||||||
|
wait_still_screen(2);
|
||||||
assert_screen("eog_image_rotated_left");
|
assert_screen("eog_image_rotated_left");
|
||||||
# Rotate right
|
# Rotate right
|
||||||
send_key("ctrl-r");
|
send_key("ctrl-r");
|
||||||
|
wait_still_screen(2);
|
||||||
assert_and_click("eog_image_default");
|
assert_and_click("eog_image_default");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,10 +11,12 @@ sub run {
|
|||||||
|
|
||||||
# Open the shortcuts
|
# Open the shortcuts
|
||||||
send_key("ctrl-?");
|
send_key("ctrl-?");
|
||||||
|
wait_still_screen(3);
|
||||||
assert_screen("eog_shortcuts_shown");
|
assert_screen("eog_shortcuts_shown");
|
||||||
# Try another screen
|
# Try another screen
|
||||||
send_key("right");
|
send_key("right");
|
||||||
send_key("ret");
|
send_key("ret");
|
||||||
|
wait_still_screen(3);
|
||||||
assert_screen("eog_shortcuts_alt_shown");
|
assert_screen("eog_shortcuts_alt_shown");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,11 +15,13 @@ sub run {
|
|||||||
record_soft_failure("Key combo does not work, issue https://gitlab.gnome.org/GNOME/gtk/-/issues/4171");
|
record_soft_failure("Key combo does not work, issue https://gitlab.gnome.org/GNOME/gtk/-/issues/4171");
|
||||||
# Open the menu
|
# Open the menu
|
||||||
assert_and_click("gnome_burger_menu");
|
assert_and_click("gnome_burger_menu");
|
||||||
wait_still_screen(3);
|
wait_still_screen(2);
|
||||||
# Open Submenu Show
|
# Open Submenu Show
|
||||||
assert_and_click("eog_submenu_show");
|
assert_and_click("eog_submenu_show");
|
||||||
|
wait_still_screen(2);
|
||||||
# Toggle gallery
|
# Toggle gallery
|
||||||
assert_and_click("eog_gallery_show");
|
assert_and_click("eog_gallery_show");
|
||||||
|
wait_still_screen(2);
|
||||||
|
|
||||||
}
|
}
|
||||||
assert_screen("eog_gallery_shown");
|
assert_screen("eog_gallery_shown");
|
||||||
|
@ -11,6 +11,7 @@ sub run {
|
|||||||
|
|
||||||
# Make the image size 1:1
|
# Make the image size 1:1
|
||||||
send_key("1");
|
send_key("1");
|
||||||
|
wait_still_screen(2);
|
||||||
assert_screen("eog_image_shown_increased");
|
assert_screen("eog_image_shown_increased");
|
||||||
# Return to the best fit
|
# Return to the best fit
|
||||||
send_key("f");
|
send_key("f");
|
||||||
|
Loading…
Reference in New Issue
Block a user