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 {
|
apps_startstop: don't rollback, defend against KDE mistypes
This comes from trying to fix the annoying recurring problem with
mistypes in KDE which has been going on since at least December.
First, we add the attempt to kind of 'precache' the kicker menu
in aasetting.pm. Then, I thought, all this snapshot loading has
to be putting a lot of load on the workers. And when each subtest
passes, it shouldn't really be necessary - they all end with
quit_with_shortcut(), which verifies that the app exited and we
got back to a blank desktop, so successful subtests should not
usually interfere with each other. We probably only want to
rollback on *failed* subtests, which is in fact openQA's default
behavior. If any specific tests change the system state such that
later tests might be affected, we can go back and just set those
tests as always_rollback, but I think it should be safe to skip
rollbacks on success for most of them.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-12 19:45:47 +00:00
|
|
|
return {};
|
2019-01-29 14:40:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|