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:
parent
8a60991d0a
commit
83356ceec6
15
needles/gnome/apps/eog/eog_wallpaper_set_window.json
Normal file
15
needles/gnome/apps/eog/eog_wallpaper_set_window.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 289,
|
||||
"ypos": 90,
|
||||
"width": 188,
|
||||
"height": 24,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"eog_wallpaper_set_window"
|
||||
]
|
||||
}
|
BIN
needles/gnome/apps/eog/eog_wallpaper_set_window.png
Normal file
BIN
needles/gnome/apps/eog/eog_wallpaper_set_window.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 674 KiB |
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -13,11 +13,15 @@ sub run {
|
||||
assert_and_click("gnome_burger_menu");
|
||||
# Set as background
|
||||
assert_and_click("eog_set_wallpaper");
|
||||
wait_still_screen(3);
|
||||
# Check that the dialogue has appeared
|
||||
assert_screen("eog_wallpaper_set_window");
|
||||
# Confirm
|
||||
send_key("tab");
|
||||
send_key("ret");
|
||||
# Close the application
|
||||
send_key("ctrl-q");
|
||||
wait_still_screen(3);
|
||||
# Check that the wallpaper was set
|
||||
assert_screen("eog_image_background");
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user