1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-12-21 18:03:11 +00:00
os-autoinst-distri-fedora/tests/apps_startstop/kde/firewall.pm
Adam Williamson 34eba25858 KDE apps_startstop firewall: type password faster
This is obviously more prone to mistypes, but firewall-config
seems to be timing out if we take more than 25 seconds to type
the password, and we take juuust too long with type_very_safely,
even after tweaking the sleeps to shorter wait_still_screens
here. We could twiddle with those even more, but let's just go
with type_safely for now, if that turns out to be too unreliable
I'll change tack.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-04-15 23:08:20 -07:00

38 lines
805 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This test checks that Firewall starts.
sub run {
my $self = shift;
my $password = get_var('ROOT_PASSWORD', 'weakpassword');
# Start the application
menu_launch_type 'firewall';
# Firewall requires password to be entered and confirmed to start.
# View password
assert_screen "auth_required", timeout => 60;
wait_still_screen 3;
# FIXME when https://github.com/firewalld/firewalld/issues/1328
# is fixed, switch (back) to type_very_safely here
type_safely $password;
send_key 'ret';
wait_still_screen 3;
# Check that it is started
assert_screen 'firewall_runs';
# Close the application
quit_with_shortcut();
}
sub test_flags {
return {};
}
1;
# vim: set sw=4 et: