From 4cb816e52dc3fbad376d48a77b935b34d60dde77 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 22 Sep 2021 14:10:04 -0700 Subject: [PATCH] GNOME application tests: robustify various spots with waits These tests are failing a lot in various places on aarch64. We just need to slow down a bit and let the poor thing catch up sometimes. Signed-off-by: Adam Williamson --- tests/applications/evince/aaa_setup.pm | 5 +++++ tests/applications/gedit/aaa_setup.pm | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/applications/evince/aaa_setup.pm b/tests/applications/evince/aaa_setup.pm index da65a8cb..8ce31c4e 100644 --- a/tests/applications/evince/aaa_setup.pm +++ b/tests/applications/evince/aaa_setup.pm @@ -22,10 +22,13 @@ sub run { menu_launch_type("evince"); # Check that is started assert_screen 'apps_run_dviewer'; + wait_still_screen 5; # Open the test file to create a starting point for the other Evince tests. # Click on Open button to open the File Open Dialog assert_and_click("evince_open_file_dialog", button => "left", timeout => 30); + # wait out the animation + wait_still_screen 5; if (get_var("CANNED")) { # open the Documents folder. @@ -43,6 +46,8 @@ sub run { # Check that the file has been successfully opened. assert_screen("evince_file_opened"); + # let things settle down before we screenshot. + wait_still_screen 5; } sub test_flags { diff --git a/tests/applications/gedit/aaa_setup.pm b/tests/applications/gedit/aaa_setup.pm index 2548dbc4..9afa4400 100644 --- a/tests/applications/gedit/aaa_setup.pm +++ b/tests/applications/gedit/aaa_setup.pm @@ -21,11 +21,13 @@ sub run { menu_launch_type("gedit"); # Check that it started assert_screen("apps_run_texteditor"); + wait_still_screen 5; # Open the test file send_key("ctrl-o"); - # Open the documents location + # Wait out animation, then open the documents location + wait_still_screen 5; assert_and_click("gnome_open_location_documents"); # Choose the file @@ -39,6 +41,8 @@ sub run { # Check that the document has been opened assert_screen("gedit_text_file_opened"); + # let things settle down before we screenshot + wait_still_screen 5; } sub test_flags {