mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-26 07:33:09 +00:00
25f408ea7e
There are three places where we basically want to click away pop-up update notifications and the buggy akonadi_migration_agent notification if it's there, in KDE tests. Let's share this code between them, and also let's record soft failures for the buggy cases in the desktop_notifications test. Signed-off-by: Adam Williamson <awilliam@redhat.com>
45 lines
1023 B
Perl
45 lines
1023 B
Perl
use base "installedtest";
|
|
use strict;
|
|
use testapi;
|
|
use utils;
|
|
|
|
# This sets the KDE desktop background to plain black, to avoid
|
|
# needle match problems caused by transparency.
|
|
|
|
sub run {
|
|
my $self = shift;
|
|
# Run the Desktop settings
|
|
hold_key 'alt';
|
|
send_key 'd';
|
|
send_key 's';
|
|
release_key 'alt';
|
|
# Select type of background
|
|
assert_and_click "deskset_select_type";
|
|
wait_still_screen 2;
|
|
# Select plain color type
|
|
assert_and_click "deskset_plain_color";
|
|
wait_still_screen 2;
|
|
# Open colors selection
|
|
assert_and_click "deskset_select_color";
|
|
wait_still_screen 2;
|
|
# Select black
|
|
assert_and_click "deskset_select_black";
|
|
wait_still_screen 2;
|
|
# Confirm
|
|
assert_and_click "kde_ok";
|
|
wait_still_screen 2;
|
|
# Close the application
|
|
assert_and_click "kde_ok";
|
|
# get rid of unwanted notifications that interfere with tests
|
|
click_unwanted_notifications;
|
|
}
|
|
|
|
sub test_flags {
|
|
return {fatal => 1, milestone => 1};
|
|
}
|
|
|
|
|
|
1;
|
|
|
|
# vim: set sw=4 et:
|