1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 05:53:09 +00:00

Use waiting commands to make the tests more defensive.

This commit is contained in:
Lukáš Růžička 2022-01-25 11:21:04 +01:00
parent 8a60991d0a
commit 83356ceec6
11 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 289,
"ypos": 90,
"width": 188,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"eog_wallpaper_set_window"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 KiB

View File

@ -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");
} }

View File

@ -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");

View File

@ -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");
} }

View File

@ -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");
} }

View File

@ -13,11 +13,15 @@ sub run {
assert_and_click("gnome_burger_menu"); assert_and_click("gnome_burger_menu");
# Set as background # Set as background
assert_and_click("eog_set_wallpaper"); assert_and_click("eog_set_wallpaper");
wait_still_screen(3);
# Check that the dialogue has appeared
assert_screen("eog_wallpaper_set_window");
# Confirm # Confirm
send_key("tab"); send_key("tab");
send_key("ret"); send_key("ret");
# Close the application # Close the application
send_key("ctrl-q"); send_key("ctrl-q");
wait_still_screen(3);
# Check that the wallpaper was set # Check that the wallpaper was set
assert_screen("eog_image_background"); assert_screen("eog_image_background");

View File

@ -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");
} }

View File

@ -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");
} }

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"); 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");

View File

@ -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");