2019-01-29 14:40:52 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
|
|
|
|
# This test checks that Krfb 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 'krfb';
|
2019-01-29 14:40:52 +00:00
|
|
|
# Check that it is started
|
2023-10-17 16:15:21 +00:00
|
|
|
assert_screen ['krfb_runs', 'kde_cancel_button'], timeout => 60;
|
2023-10-24 15:21:51 +00:00
|
|
|
# we may see *two* cancel buttons - one for remote control
|
|
|
|
# permissions, one for kwallet
|
2023-10-17 16:15:21 +00:00
|
|
|
if (match_has_tag 'kde_cancel_button') {
|
|
|
|
click_lastmatch;
|
2023-10-24 15:21:51 +00:00
|
|
|
assert_screen ['krfb_runs', 'kde_cancel_button'];
|
|
|
|
if (match_has_tag 'kde_cancel_button') {
|
|
|
|
click_lastmatch;
|
|
|
|
assert_screen 'krfb_runs';
|
|
|
|
}
|
2023-10-17 16:15:21 +00:00
|
|
|
}
|
2022-10-31 14:43:02 +00:00
|
|
|
wait_still_screen(3);
|
2023-03-01 22:10:00 +00:00
|
|
|
# close the "remote control requested" window if shown
|
|
|
|
send_key "esc";
|
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:
|