2019-01-29 14:40:52 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This test checks that Kmail 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 'kmail';
|
2019-01-29 14:40:52 +00:00
|
|
|
# Cancel Kmail data wizard
|
2022-12-05 13:03:48 +00:00
|
|
|
assert_and_click 'kde_cancel_button', timeout => 60;
|
2022-10-06 07:18:21 +00:00
|
|
|
# Sometimes, the Kmail window is shown over the settings window.
|
|
|
|
# If that is the case, assert that Kmail is running and exit.
|
|
|
|
unless (check_screen("kmail_runs")) {
|
|
|
|
if (check_screen("kde_cancel_button", 1)) {
|
|
|
|
click_lastmatch;
|
|
|
|
}
|
|
|
|
assert_screen("kmail_runs");
|
2019-03-27 15:37:30 +00:00
|
|
|
}
|
2022-10-06 07:18:21 +00:00
|
|
|
else {
|
|
|
|
assert_screen("kmail_runs");
|
|
|
|
}
|
2022-10-10 13:04:06 +00:00
|
|
|
# Close the application
|
|
|
|
quit_with_shortcut();
|
2019-01-29 14:40:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {always_rollback => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|