1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-19 13:54:32 +00:00

Make the test parts more defensive.

This commit is contained in:
Lukáš Růžička 2022-01-25 12:18:39 +01:00
parent a26d39e104
commit 3f1a48fff8
8 changed files with 16 additions and 1 deletions

View File

@ -10,11 +10,14 @@ sub run {
# Open the menu
assert_and_click("gnome_burger_menu");
wait_still_screen(3);
# Click on the About item
assert_and_click("eog_menu_about");
wait_still_screen(3);
assert_screen("eog_about_shown");
# Click on Credits
assert_and_click("eog_about_credits");
wait_still_screen(2);
assert_screen("eog_credits_shown");
}

View File

@ -14,6 +14,7 @@ sub run {
# Check that the Side panel is visible, try to make it visible if it is not.
if (!check_screen("eog_side_panel")) {
send_key("f9");
wait_still_screen(2);
}
assert_screen("eog_side_panel");

View File

@ -10,9 +10,11 @@ sub run {
# Go to next picture.
send_key("right");
wait_still_screen(2);
assert_screen("eog_image_next");
# Go to previous picture
send_key("left");
wait_still_screen;
assert_and_click("eog_image_default");
}

View File

@ -11,9 +11,11 @@ sub run {
# Open the shortcuts
send_key("f1");
wait_still_screen(3);
assert_screen("eog_help_shown");
# Try another screen
assert_and_click("eog_help_image_zoom");
wait_still_screen(2);
assert_screen("eog_help_zoom_shown");
}

View File

@ -10,9 +10,11 @@ sub run {
# Rotate left
send_key("shift-ctrl-r");
wait_still_screen(2);
assert_screen("eog_image_rotated_left");
# Rotate right
send_key("ctrl-r");
wait_still_screen(2);
assert_and_click("eog_image_default");
}

View File

@ -11,10 +11,12 @@ sub run {
# Open the shortcuts
send_key("ctrl-?");
wait_still_screen(3);
assert_screen("eog_shortcuts_shown");
# Try another screen
send_key("right");
send_key("ret");
wait_still_screen(3);
assert_screen("eog_shortcuts_alt_shown");
}

View File

@ -15,11 +15,13 @@ sub run {
record_soft_failure("Key combo does not work, issue https://gitlab.gnome.org/GNOME/gtk/-/issues/4171");
# Open the menu
assert_and_click("gnome_burger_menu");
wait_still_screen(3);
wait_still_screen(2);
# Open Submenu Show
assert_and_click("eog_submenu_show");
wait_still_screen(2);
# Toggle gallery
assert_and_click("eog_gallery_show");
wait_still_screen(2);
}
assert_screen("eog_gallery_shown");

View File

@ -11,6 +11,7 @@ sub run {
# Make the image size 1:1
send_key("1");
wait_still_screen(2);
assert_screen("eog_image_shown_increased");
# Return to the best fit
send_key("f");