From 137f2a21765f4c9ecb8b32983515f9fc598b1d6f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 29 Nov 2022 09:41:47 -0800 Subject: [PATCH] nautilus: check app started *before* trying to fullscreen it Seems to make a lot more sense this way around. Signed-off-by: Adam Williamson --- tests/applications/nautilus/aaa_setup.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/applications/nautilus/aaa_setup.pm b/tests/applications/nautilus/aaa_setup.pm index 4bf82fb2..1afa0fc9 100644 --- a/tests/applications/nautilus/aaa_setup.pm +++ b/tests/applications/nautilus/aaa_setup.pm @@ -25,14 +25,13 @@ sub run { # Start the application menu_launch_type("nautilus"); + # Check that is started + assert_screen 'apps_run_files'; wait_still_screen("2"); # Fullsize the Nautilus window. wait_screen_change { send_key("super-up"); }; - # Check that is started - assert_screen 'apps_run_files'; - # Click to change the Directory view to listings. assert_and_click("nautilus_toggle_view", timeout => '30', button => 'left', mousehide => '1');