1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-06 01:13:07 +00:00

Add more tests.

This commit is contained in:
Lukas Ruzicka 2019-05-07 15:42:56 +02:00
parent c7b34c10be
commit a6a01dbb9f
9 changed files with 63 additions and 9 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('konqueror_launch','menu_applications','menu_internet');
if ($mode eq 'fast') {
start_with_command 'konqueror';
}
else {
start_with_launcher('konqueror_launch','menu_applications','menu_internet');
}
# Check that it is started
assert_screen 'konqueror_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('konsole_launch','menu_applications','menu_system');
if ($mode eq 'fast') {
start_with_command 'konsole';
}
else {
start_with_launcher('konsole_launch','menu_applications','menu_system');
}
# Check that it is started
assert_screen 'konsole_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('kontact_launch','menu_applications','menu_office');
if ($mode eq 'fast') {
start_with_command 'kontact';
}
else {
start_with_launcher('kontact_launch','menu_applications','menu_office');
}
# Enable unified mailboxes, if they appear
if (check_screen("enable_unified_mailboxes", 1)) {
assert_and_click "enable_unified_mailboxes";

View File

@ -7,9 +7,15 @@ use utils;
sub run {
my $self = shift;
my $mode = get_var('MODE');
# Start the application
start_with_launcher('konversation_launch','menu_applications','menu_internet');
if ($mode eq 'fast') {
start_with_command 'konversation';
}
else {
start_with_launcher('konversation_launch','menu_applications','menu_internet');
}
# Connect to Freenode
assert_and_click 'konversation_connect';
# 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('korganizer_launch','menu_applications','menu_office');
if ($mode eq 'fast') {
start_with_command 'korganizer';
}
else {
start_with_launcher('korganizer_launch','menu_applications','menu_office');
}
# Check that it is started
assert_screen 'korganizer_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('kparted_launch','menu_applications','menu_system');
if ($mode eq 'fast') {
start_with_command 'kparted';
}
else {
start_with_launcher('kparted_launch','menu_applications','menu_system');
}
# Provide root password to run the application
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('krdc_launch','menu_applications','menu_internet');
if ($mode eq 'fast') {
start_with_command 'krdc';
}
else {
start_with_launcher('krdc_launch','menu_applications','menu_internet');
}
# Check that it is started
assert_screen 'krdc_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('krfb_launch','menu_applications','menu_internet');
if ($mode eq 'fast') {
start_with_command 'krfb';
}
else {
start_with_launcher('krfb_launch','menu_applications','menu_internet');
}
# Check that it is started
assert_screen 'krfb_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 'kruler';
}
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.
send_key_until_needlematch('kruler_launch', 'down', 6, 2);
assert_and_click 'kruler_launch';