2023-03-21 10:39:49 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
use desktoptools;
|
|
|
|
|
2023-03-21 11:01:13 +00:00
|
|
|
# This script tests if Software can browse through lists of applications.
|
2023-03-21 10:39:49 +00:00
|
|
|
|
2023-03-21 11:01:13 +00:00
|
|
|
# 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.
|
2023-03-21 10:39:49 +00:00
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
|
2023-03-21 11:01:13 +00:00
|
|
|
# Open the Create category.
|
|
|
|
assert_and_click("software_category_create");
|
|
|
|
assert_and_click("software_application_amarok");
|
2023-03-21 15:22:02 +00:00
|
|
|
check_application_information("amarok");
|
2023-03-21 11:01:13 +00:00
|
|
|
# Come back to the main screen
|
|
|
|
while (! check_screen("gnome_search_button")) {
|
|
|
|
assert_and_click("gnome_back_button");
|
|
|
|
}
|
|
|
|
|
2023-03-22 08:48:49 +00:00
|
|
|
# Open the Play category.
|
2023-03-22 08:56:57 +00:00
|
|
|
assert_and_click("software_category_work");
|
2023-03-22 09:04:29 +00:00
|
|
|
assert_and_click("software_application_clocks");
|
|
|
|
check_application_information("clocks");
|
2023-03-21 11:01:13 +00:00
|
|
|
# Come back to the main screen
|
|
|
|
while (! check_screen("gnome_search_button")) {
|
|
|
|
assert_and_click("gnome_back_button");
|
|
|
|
}
|
|
|
|
|
|
|
|
# Open the Play category.
|
|
|
|
assert_and_click("software_category_play");
|
2023-03-23 16:24:14 +00:00
|
|
|
if (check_screen("software_application_chess")) {
|
|
|
|
click_lastmatch();
|
|
|
|
check_application_information("chess");
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
record_soft_failure("The application was not listed on the first screen.");
|
|
|
|
}
|
2023-03-21 10:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
# When finished, rollback to milestone
|
|
|
|
return {always_rollback => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|