From a720fd2c75e8d03a86795097cc98f9069a5cba47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Mon, 24 Jan 2022 14:09:25 +0100 Subject: [PATCH] Change the way to enter the menu to make tests pass more easily. --- tests/applications/eog/about.pm | 4 +--- tests/applications/eog/pic_to_wallpaper.pm | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/applications/eog/about.pm b/tests/applications/eog/about.pm index 12deac7f..f3fd5475 100644 --- a/tests/applications/eog/about.pm +++ b/tests/applications/eog/about.pm @@ -9,14 +9,12 @@ sub run { my $self = shift; # Open the menu - send_key("f10"); + assert_and_click("gnome_burger_menu"); # Click on the About item assert_and_click("eog_menu_about"); - wait_still_screen(2); assert_screen("eog_about_shown"); # Click on Credits assert_and_click("eog_about_credits"); - wait_still_screen(2); assert_screen("eog_credits_shown"); } diff --git a/tests/applications/eog/pic_to_wallpaper.pm b/tests/applications/eog/pic_to_wallpaper.pm index 76973a14..dd67a166 100644 --- a/tests/applications/eog/pic_to_wallpaper.pm +++ b/tests/applications/eog/pic_to_wallpaper.pm @@ -10,7 +10,7 @@ sub run { sleep 2; # Go to the menu - send_key("f10"); + assert_and_click("gnome_burger_menu"); # Set as background assert_and_click("eog_set_wallpaper"); # Confirm