From 20a2d161cabadbc178ed31563119a508a3789ac6 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 3 Jul 2023 11:31:48 -0700 Subject: [PATCH] Add some safety to g-t-e language setup Seems in Rawhide the menu is loading without dividers briefly, we match there, then the dividers load in and make the menu longer, so when we click, we hit a different entry in the menu. Signed-off-by: Adam Williamson --- tests/applications/gnome-text-editor/aaa_setup.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/applications/gnome-text-editor/aaa_setup.pm b/tests/applications/gnome-text-editor/aaa_setup.pm index 90b06d5a..34fe7fed 100644 --- a/tests/applications/gnome-text-editor/aaa_setup.pm +++ b/tests/applications/gnome-text-editor/aaa_setup.pm @@ -48,6 +48,9 @@ sub run { # Set the document language to English in order # to have the spelling control correct. assert_and_click("gte_line_word", button => "right"); + # the context menu can change while it's loading, so we need to be careful + assert_screen("gte_context_languages"); + wait_still_screen 3; assert_and_click("gte_context_languages"); assert_and_click("gte_context_language_english"); }