From 13780392304ffb943aef10921c0cb6672e303568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Wed, 10 Jul 2024 16:16:58 +0200 Subject: [PATCH] Fix Gnome Text Editor The new layout needs to scroll down to reveal some of the elements. Use send_until_needlematch to navigate in the application and arrive at those switch buttons to enable the requested functionality. --- tests/applications/gnome-text-editor/line_numbering.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/applications/gnome-text-editor/line_numbering.pm b/tests/applications/gnome-text-editor/line_numbering.pm index 577de2d6..9cdb7c75 100644 --- a/tests/applications/gnome-text-editor/line_numbering.pm +++ b/tests/applications/gnome-text-editor/line_numbering.pm @@ -19,6 +19,10 @@ sub run { # Use the menu to switch on highlighting. assert_and_click("gnome_burger_menu"); assert_and_click("gte_preferences_submenu"); + # This fixes a problem where on smaller screens + # some options are hidden and we need to scroll + # to see them. + send_key_until_needlematch("gte_toggle_line_highlight", "tab", 20); assert_and_click("gte_toggle_line_highlight"); # Dismiss the menu assert_and_click("gte_preferences_off"); @@ -33,6 +37,7 @@ sub run { # Display the side panel. assert_and_click("gnome_burger_menu"); assert_and_click("gte_preferences_submenu"); + send_key_until_needlematch("gte_toggle_side_panel", "tab", 20); assert_and_click("gte_toggle_side_panel"); assert_and_click("gte_preferences_off"); assert_screen "gte_side_panel_on"; @@ -40,6 +45,7 @@ sub run { # Display the grid. assert_and_click("gnome_burger_menu"); assert_and_click("gte_preferences_submenu"); + send_key_until_needlematch("gte_toggle_grid", "tab", 20); assert_and_click("gte_toggle_grid"); assert_and_click("gte_preferences_off"); assert_screen "gte_grid_on";