2019-01-29 14:40:52 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This test checks that Konversation starts.
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
2023-09-26 22:51:59 +00:00
|
|
|
my $relnum = get_release_number;
|
|
|
|
# neochat replaced konversation in F40+; while we're still running
|
|
|
|
# this test on F39 the test has to handle both...
|
|
|
|
my $app = $relnum > 39 ? 'neochat' : 'konversation';
|
2022-07-28 20:32:57 +00:00
|
|
|
|
2019-01-29 14:40:52 +00:00
|
|
|
# Start the application
|
2023-09-26 22:51:59 +00:00
|
|
|
menu_launch_type $app;
|
2019-01-29 14:40:52 +00:00
|
|
|
# Connect to Freenode
|
2023-09-26 22:51:59 +00:00
|
|
|
assert_and_click "${app}_connect", timeout => 60 if ($app eq 'konversation');
|
2019-01-29 14:40:52 +00:00
|
|
|
# Check that it is started
|
2023-09-26 22:51:59 +00:00
|
|
|
assert_screen "${app}_runs";
|
2019-01-29 14:40:52 +00:00
|
|
|
# Close the application
|
2023-09-26 22:51:59 +00:00
|
|
|
if ($app eq 'konversation') {
|
|
|
|
send_key 'alt-f4';
|
|
|
|
wait_still_screen 2;
|
|
|
|
assert_and_click "${app}_confirm_close";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
quit_with_shortcut();
|
|
|
|
}
|
2019-01-29 14:40:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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:
|