From 7649147e1db445c1e2322c1a6c68a05a9ac46222 Mon Sep 17 00:00:00 2001 From: Lukas Ruzicka Date: Tue, 7 May 2019 13:03:23 +0200 Subject: [PATCH] Add more changed tests. --- tests/apps_startstop/kde/dbusviewer.pm | 10 ++++++++-- tests/apps_startstop/kde/discover.pm | 8 +++++++- tests/apps_startstop/kde/dnfdragora.pm | 8 +++++++- tests/apps_startstop/kde/docviewer.pm | 10 ++++++++-- 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/tests/apps_startstop/kde/dbusviewer.pm b/tests/apps_startstop/kde/dbusviewer.pm index d2d81a7c..8ff62f83 100644 --- a/tests/apps_startstop/kde/dbusviewer.pm +++ b/tests/apps_startstop/kde/dbusviewer.pm @@ -7,9 +7,15 @@ use utils; sub run { my $self = shift; + my $mode = get_var('MODE'); - # Start the application - start_with_launcher('dbusviewer_launch', 'menu_applications','menu_development'); + if ($mode eq 'fast') { + start_with_command 'dbusviewer'; + } + else { + # Start the application + start_with_launcher('dbusviewer_launch', 'menu_applications','menu_development'); + } # Check that it is started assert_screen 'dbusviewer_runs'; # Close the application diff --git a/tests/apps_startstop/kde/discover.pm b/tests/apps_startstop/kde/discover.pm index bf708404..d6893307 100644 --- a/tests/apps_startstop/kde/discover.pm +++ b/tests/apps_startstop/kde/discover.pm @@ -7,9 +7,15 @@ use utils; sub run { my $self = shift; + my $mode = get_var('MODE'); # Start the application - start_with_launcher('discover_launch','menu_applications','menu_system'); + if ($mode eq 'fast') { + start_with_command 'discover'; + } + else { + start_with_launcher('discover_launch','menu_applications','menu_system'); + } # Check that it is started assert_screen 'discover_runs'; # Close the application diff --git a/tests/apps_startstop/kde/dnfdragora.pm b/tests/apps_startstop/kde/dnfdragora.pm index 3c317730..7f616c31 100644 --- a/tests/apps_startstop/kde/dnfdragora.pm +++ b/tests/apps_startstop/kde/dnfdragora.pm @@ -7,9 +7,15 @@ use utils; sub run { my $self = shift; + my $mode = get_var('MODE'); # Start the application - start_with_launcher('dnfdragora_launch', 'menu_applications','menu_administration'); + if ($mode eq 'fast') { + start_with_command 'dnfdragora'; + } + else { + start_with_launcher('dnfdragora_launch', 'menu_applications','menu_administration'); + } # Check that it is started assert_screen 'dnfdragora_runs'; sleep 60; diff --git a/tests/apps_startstop/kde/docviewer.pm b/tests/apps_startstop/kde/docviewer.pm index 1690802a..3d885886 100644 --- a/tests/apps_startstop/kde/docviewer.pm +++ b/tests/apps_startstop/kde/docviewer.pm @@ -7,9 +7,15 @@ use utils; sub run { my $self = shift; - + my $mode = get_var('MODE'); + # Start the application - start_with_launcher('docviewer_launch', 'menu_applications','menu_graphics'); + if ($mode eq 'fast') { + start_with_command 'okular'; + } + else { + start_with_launcher('docviewer_launch', 'menu_applications','menu_graphics'); + } # Check that it is started assert_screen 'docviewer_runs'; # Close the application