From 1aee5d1ec0ab96dbbdee5b58966bcd9f65ca7281 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 1 Mar 2022 15:58:45 -0800 Subject: [PATCH] Avoid duplication between desktop_update and 'software' app test The 'software' test module in GNOME apps_startstop does a subset of what the desktop_update_graphical test does already, but using its own needles. Let's just have it use the same needles. Signed-off-by: Adam Williamson --- tests/apps_startstop/gnome/software.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/apps_startstop/gnome/software.pm b/tests/apps_startstop/gnome/software.pm index 4d270ea4..2e6471b6 100644 --- a/tests/apps_startstop/gnome/software.pm +++ b/tests/apps_startstop/gnome/software.pm @@ -13,11 +13,8 @@ sub run { # check if a welcome screen appears, if so, click on it - if (check_screen('apps_run_software_welcome', 1)) { - assert_and_click 'apps_run_software_welcome'; - wait_still_screen 2; - } - assert_screen 'apps_run_software'; + send_key 'ret' if (check_screen('gnome_software_welcome', 10)); + assert_screen 'desktop_package_tool_update'; # Register application register_application("gnome-software"); # Close the application