mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-25 15:23:08 +00:00
Search applications using search mode.
This commit is contained in:
parent
8b1ce37cbb
commit
3ad04a0731
42
tests/applications/software/search_applications.pm
Normal file
42
tests/applications/software/search_applications.pm
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
use base "installedtest";
|
||||||
|
use strict;
|
||||||
|
use testapi;
|
||||||
|
use utils;
|
||||||
|
use desktoptools;
|
||||||
|
|
||||||
|
# This script tests if Software can browse through various applications.
|
||||||
|
|
||||||
|
# As we cannot browse through all of the applications, we will only focus
|
||||||
|
# on three application, for example KTurtle, IDLE3, and Midori.
|
||||||
|
|
||||||
|
sub run {
|
||||||
|
my $self = shift;
|
||||||
|
|
||||||
|
# Find KTurtle and check for its details,
|
||||||
|
# use a keyword.
|
||||||
|
find_application("educational");
|
||||||
|
check_application_details("educational");
|
||||||
|
assert_and_click("gnome_back_button");
|
||||||
|
|
||||||
|
# Find IDLE3 and check for its details,
|
||||||
|
# use a name.
|
||||||
|
find_application("idle3");
|
||||||
|
check_application_details("idle3");
|
||||||
|
assert_and_click("gnome_back_button");
|
||||||
|
|
||||||
|
# Find Midori and check for its details
|
||||||
|
# use a category.
|
||||||
|
find_application("browser");
|
||||||
|
check_application_details("browser");
|
||||||
|
assert_and_click("gnome_back_button");
|
||||||
|
}
|
||||||
|
|
||||||
|
sub test_flags {
|
||||||
|
# When finished, rollback to milestone
|
||||||
|
return {always_rollback => 1};
|
||||||
|
}
|
||||||
|
|
||||||
|
1;
|
||||||
|
|
||||||
|
# vim: set sw=4 et:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user