1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-02-08 08:43:07 +00:00
os-autoinst-distri-fedora/tests/applications/bugreporter/notification.pm
Lukáš Růžička 884bffb603 Update tests.
2022-09-19 14:43:04 +02:00

37 lines
926 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This script tests if a notification appears after an exception is caught.
sub run {
my $self = shift;
# Open Terminal and use will-crash to generate a simulated crash.
menu_launch_type("terminal");
# Check that the application has started.
assert_screen("apps_run_terminal");
# Type the command.
enter_cmd("will_segfault");
# Wait one minute if a notification is displayed, otherwise softfail.
unless (check_screen("bugreporter_notification_displayed", timeout => '60')) {
record_soft_failure("The crash notification has not been shown in one minute time frame.");
}
# Exit the terminal.
enter_cmd("exit");
wait_still_screen(2);
# Start Abrt for further testing.
menu_launch_type("abrt");
assert_screen("apps_run_abrt");
}
sub test_flags {
return {fatal => 1, milestone => 1};
}
1;
# vim: set sw=4 et: