1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-20 23:53:10 +00:00

Add more revisited tests.

This commit is contained in:
Lukas Ruzicka 2019-05-07 14:22:22 +02:00
parent 7649147e1d
commit 3bb79067aa
14 changed files with 98 additions and 14 deletions

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('dolphin_launch','menu_applications','menu_system');
if ($mode eq 'fast') {
start_with_command 'dolphin';
}
else {
start_with_launcher('dolphin_launch','menu_applications','menu_system');
}
# Check that it is started
assert_screen 'dolphin_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('falkon_launch','menu_applications','menu_internet');
if ($mode eq 'fast') {
start_with_command 'falkon';
}
else {
start_with_launcher('falkon_launch','menu_applications','menu_internet');
}
# Check that it is started
assert_screen 'falkon_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('firefox_launch','menu_applications','menu_internet');
if ($mode eq 'fast') {
start_with_command 'firefox';
}
else {
start_with_launcher('firefox_launch','menu_applications','menu_internet');
}
# Check that it is started; this needle is from
# needles/firefox, it already existed before the 'apps' tests
# were created

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('firewall_launch', 'menu_applications','menu_administration');
if ($mode eq 'fast') {
start_with_command 'firewall';
}
else {
start_with_launcher('firewall_launch', 'menu_applications','menu_administration');
}
# Firewall requires password to be entered and confirmed to start.
type_very_safely(get_var('ROOT_PASSWORD','weakpassword'));
send_key 'ret';

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('gwenview_launch','menu_applications','menu_graphics');
if ($mode eq 'fast') {
start_with_command 'gwenview';
}
else {
start_with_launcher('gwenview_launch','menu_applications','menu_graphics');
}
# Check that it is started
assert_screen 'gwenview_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('help_launch','menu_applications');
if ($mode eq 'fast') {
start_with_command 'help';
}
else {
start_with_launcher('help_launch','menu_applications');
}
# Check that it is started
assert_screen 'help_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('infocenter_launch','menu_applications','menu_system');
if ($mode eq 'fast') {
start_with_command 'info';
}
else {
start_with_launcher('infocenter_launch','menu_applications','menu_system');
}
# Check that it is started
assert_screen 'infocenter_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('juk_launch','menu_applications','menu_multimedia');
if ($mode eq '[ast') {
start_with_command 'juk';
}
else {
start_with_launcher('juk_launch','menu_applications','menu_multimedia');
}
# Dismiss a setting window
assert_and_click 'juk_cancel';
wait_still_screen 2;

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('k3b_launch','menu_applications','menu_multimedia');
if ($mode eq 'fast') {
start_with_command 'k3b';
}
else {
start_with_launcher('k3b_launch','menu_applications','menu_multimedia');
}
# Get rid of no burner warning
assert_and_click 'k3b_burner_warning';
# Check that it is started

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('kaddressbook_launch','menu_applications','menu_office');
if ($mode eq 'fast') {
start_with_command 'kaddressbook';
}
else {
start_with_launcher('kaddressbook_launch','menu_applications','menu_office');
}
# Check that it is started
assert_screen 'kaddressbook_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('kcalc_launch','menu_applications','menu_utilities');
if ($mode eq '[ast') {
start_with_command 'kcalc';
}
else {
start_with_launcher('kcalc_launch','menu_applications','menu_utilities');
}
# Check that it is started
assert_screen 'kcalc_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('kcharselect_launch','menu_applications','menu_utilities');
if ($mode eq 'fast') {
start_with_command 'kcharselect';
}
else {
start_with_launcher('kcharselect_launch','menu_applications','menu_utilities');
}
# Check that it is started
assert_screen 'kcharselect_runs';
# Close the application

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('menu_graphics_more_apps', 'menu_applications','menu_graphics');
if ($mode eq 'fast') {
start_with_command 'kcolorchooser';
}
else {
start_with_launcher('menu_graphics_more_apps', 'menu_applications','menu_graphics');
}
# Games are hidden even deeper in menus, so let us fix that here.
assert_and_click 'kcolorchooser_launch';
wait_still_screen 2;

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('kfind_launch','menu_applications','menu_utilities');
if ($mode eq 'fast') {
start_with_command 'kfind';
}
else {
start_with_launcher('kfind_launch','menu_applications','menu_utilities');
}
# Check that it is started
assert_screen 'kfind_runs';
# Close the application