mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 10:48:30 +00:00
22b185abf6
This PR adds the following: * moves out the presetting procedures, so that two long terminal tests do not have to run twice * add methods for application to register when successfully started * adds a test that checks if all required applications have registered
35 lines
873 B
Perl
35 lines
873 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This test tests if Terminal starts and uses it to change desktop settings for all the following tests.
|
|
# Therefore, if you want to use all the tests from the APPS family, this should be the very first to do.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# open the application
|
|
send_key 'alt-f1';
|
|
wait_still_screen 2;
|
|
type_very_safely 'terminal';
|
|
send_key 'ret';
|
|
wait_still_screen 5;
|
|
|
|
# Register application
|
|
register_application("gnome-terminal");
|
|
|
|
# Close the application
|
|
quit_with_shortcut();
|
|
}
|
|
|
|
# If this test fails, the others will probably start failing too,
|
|
# so there is no need to continue.
|
|
# Also, when subsequent tests fail, the suite will revert to this state for further testing.
|
|
sub test_flags {
|
|
return { fatal => 1, milestone => 1 };
|
|
}
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|