1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-16 20:44:31 +00:00

Add more tests.

This commit is contained in:
Lukas Ruzicka 2019-05-07 14:56:21 +02:00
parent 3bb79067aa
commit c7b34c10be
9 changed files with 64 additions and 10 deletions

View File

@ -7,9 +7,15 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
my $mode = get_var('MODE');
# Start the application # Start the application
start_with_launcher('kget_launch','menu_applications','menu_internet'); if ($mode eq 'fast') {
start_with_command 'kget';
}
else {
start_with_launcher('kget_launch','menu_applications','menu_internet');
}
# Enable as default application # Enable as default application
assert_and_click 'kget_enable'; assert_and_click 'kget_enable';
# Check that it is started # Check that it is started

View File

@ -7,9 +7,15 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
my $mode = get_var('MODE');
# Start the application # Start the application
start_with_launcher('kgpg_launch','menu_applications','menu_utilities'); if ($mode eq 'fast') {
start_with_command 'kgpg';
}
else {
start_with_launcher('kgpg_launch','menu_applications','menu_utilities');
}
# Deal with the first wizard screen # Deal with the first wizard screen
assert_and_click 'kgpg_next'; assert_and_click 'kgpg_next';
wait_still_screen 2; wait_still_screen 2;

View File

@ -7,9 +7,15 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
my $mode = get_var('MODE');
# Start the application # Start the application
start_with_launcher('kimport_launch','menu_applications','menu_utilities'); if ($mode eq 'fast') {
start_with_command 'akonadiimportwizard';
}
else {
start_with_launcher('kimport_launch','menu_applications','menu_utilities');
}
# Click ok to go further # Click ok to go further
assert_and_click 'kde_ok'; assert_and_click 'kde_ok';
wait_still_screen 2; wait_still_screen 2;

View File

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

View File

@ -7,9 +7,15 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
my $mode = get_var('MODE');
# Start the application # Start the application
start_with_launcher('kmail_launch','menu_applications','menu_internet'); if ($mode eq 'fast') {
start_with_command 'kmail';
}
else {
start_with_launcher('kmail_launch','menu_applications','menu_internet');
}
# Enable unified mailboxes, if they appear # Enable unified mailboxes, if they appear
if (check_screen("enable_unified_mailboxes", 1)) { if (check_screen("enable_unified_mailboxes", 1)) {
assert_and_click "enable_unified_mailboxes"; assert_and_click "enable_unified_mailboxes";

View File

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

View File

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

View File

@ -7,9 +7,15 @@ use utils;
sub run { sub run {
my $self = shift; my $self = shift;
my $mode = get_var('MODE');
# Start the application # Start the application
start_with_launcher('kmouth_launch','menu_applications','menu_utilities'); if ($mode eq 'fast') {
start_with_command 'kmouth';
}
else {
start_with_launcher('kmouth_launch','menu_applications','menu_utilities');
}
# Deal with the welcome screens # Deal with the welcome screens
while (check_screen('kde_next', '1')){ while (check_screen('kde_next', '1')){
assert_and_click 'kde_next'; assert_and_click 'kde_next';

View File

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