mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-12-16 05:35:59 +00:00
menu_launch_type: don't wait_still_screen for animated apps
This is intended for things like system monitor where there's constant motion on the app screen so we can't wait_still_screen. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
ef0c7892b5
commit
0f4e91c993
@ -1324,6 +1324,7 @@ sub menu_launch_type {
|
|||||||
my ($application, %args) = @_;
|
my ($application, %args) = @_;
|
||||||
my $desktop = get_var("DESKTOP");
|
my $desktop = get_var("DESKTOP");
|
||||||
my $timeout = $args{timeout} // 30;
|
my $timeout = $args{timeout} // 30;
|
||||||
|
my $animated = $args{animated} // 0;
|
||||||
|
|
||||||
# The standard combo key is the "super" key, just in I3
|
# The standard combo key is the "super" key, just in I3
|
||||||
# it is different.
|
# it is different.
|
||||||
@ -1360,7 +1361,13 @@ sub menu_launch_type {
|
|||||||
else {
|
else {
|
||||||
record_soft_failure('Maximizing in this desktop is not supported at the moment!');
|
record_soft_failure('Maximizing in this desktop is not supported at the moment!');
|
||||||
}
|
}
|
||||||
wait_still_screen 3;
|
if $animated {
|
||||||
|
# can't wait_still_screen if the app's animated
|
||||||
|
sleep 3;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
wait_still_screen 3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# If check that app is running was requested
|
# If check that app is running was requested
|
||||||
|
|||||||
@ -12,7 +12,7 @@ sub run {
|
|||||||
# Set the update notification timestamp
|
# Set the update notification timestamp
|
||||||
set_update_notification_timestamp();
|
set_update_notification_timestamp();
|
||||||
# Start the Application
|
# Start the Application
|
||||||
menu_launch_type("system_monitor", checkstart => 1, maximize => 1);
|
menu_launch_type("system_monitor", checkstart => 1, maximize => 1, animated => 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub test_flags {
|
sub test_flags {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user