From f7487fa1a49605d8e5dfc806ab75176f464dc17a Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 21 Mar 2023 12:01:13 +0100 Subject: [PATCH] Browse through apps with mouse. --- .../software/browse_applications.pm | 42 ++++++++++++------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/tests/applications/software/browse_applications.pm b/tests/applications/software/browse_applications.pm index 320d51a5..6a9628f6 100644 --- a/tests/applications/software/browse_applications.pm +++ b/tests/applications/software/browse_applications.pm @@ -4,28 +4,40 @@ use testapi; use utils; use desktoptools; -# This script tests if Software can browse through various applications. +# This script tests if Software can browse through lists of applications. -# As we cannot browse through all of the applications, we will only focus -# on three application, for example KTurtle, IDLE3, and Falkon. +# As we cannot browse through all of the applications, we will only +# browse through three categories and pick one application from +# the editor's choice list. +# Hopefully, the application will be listed as we cannot move +# through the list except with scrolling the wheel, which is +# currently not supported by openQA. sub run { my $self = shift; - # Find KTurtle and check for its details. - find_application("kturtle"); - check_application_details("kturtle"); - assert_and_click("gnome_back_button"); + # Open the Create category. + assert_and_click("software_category_create"); + assert_and_click("software_application_amarok"); + check_application_details("amarok"); + # Come back to the main screen + while (! check_screen("gnome_search_button")) { + assert_and_click("gnome_back_button"); + } - # Find IDLE3 and check for its details. - find_application("idle3"); - check_application_details("idle3"); - assert_and_click("gnome_back_button"); + # Open the Learn category. + assert_and_click("software_category_learn"); + assert_and_click("software_application_octave"); + check_application_details("octave"); + # Come back to the main screen + while (! check_screen("gnome_search_button")) { + assert_and_click("gnome_back_button"); + } - # Find Falkon and check for its details. - find_application("falkon"); - check_application_details("falkon"); - assert_and_click("gnome_back_button"); + # Open the Play category. + assert_and_click("software_category_play"); + assert_and_click("software_application_chess"); + check_application_details("chess"); } sub test_flags {