2019-01-29 14:40:52 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This test checks that Kmouth starts.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2019-01-29 14:40:52 +00:00
|
|
|
# Start the application
|
2019-05-07 09:42:36 +00:00
|
|
|
menu_launch_type 'kmouth';
|
|
|
|
sleep 2;
|
2019-01-29 14:40:52 +00:00
|
|
|
# Deal with the welcome screens
|
2022-09-29 20:17:29 +00:00
|
|
|
assert_screen ["kde_next", "kde_finish"], 90;
|
2019-05-07 09:42:36 +00:00
|
|
|
while (match_has_tag "kde_next") {
|
2022-07-28 20:32:57 +00:00
|
|
|
assert_and_click "kde_next";
|
2019-05-07 09:42:36 +00:00
|
|
|
sleep 2;
|
|
|
|
assert_screen ["kde_next", "kde_finish"];
|
2019-01-29 14:40:52 +00:00
|
|
|
}
|
|
|
|
# Settings close
|
|
|
|
assert_and_click 'kde_finish';
|
|
|
|
wait_still_screen 2;
|
|
|
|
# Check that it is started
|
2022-07-19 12:49:26 +00:00
|
|
|
# July 19th, I realized that kmouth test has been failing,
|
|
|
|
# but it seems that it takes more time to run than
|
|
|
|
# the needle is willing to wait. Adding wait time.
|
|
|
|
assert_screen('kmouth_runs', timeout => 300);
|
2019-01-29 14:40:52 +00:00
|
|
|
# Close the application
|
|
|
|
quit_with_shortcut();
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
2024-04-12 19:45:47 +00:00
|
|
|
return {};
|
2019-01-29 14:40:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|