1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Fix KDE live notification test (dismiss network notification)

KDE in F28+ seems to show a network connection notification on
live boot, for some reason. Just dismiss it to help the test
pass.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-03-28 19:01:46 -07:00
parent df9db4fb2f
commit c2a5846064
5 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,16 @@
{
"tags": [
"DESKTOP-kde",
"desktop_notification_dismiss"
],
"area": [
{
"xpos": 992,
"ypos": 435,
"width": 15,
"height": 16,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

View File

@ -0,0 +1,16 @@
{
"tags": [
"DESKTOP-kde",
"desktop_network_notification"
],
"area": [
{
"xpos": 641,
"ypos": 430,
"width": 142,
"height": 21,
"type": "match"
}
],
"properties": []
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

View File

@ -87,6 +87,11 @@ sub run {
# the notifications bit
assert_and_click 'desktop_expand_systray';
assert_and_click 'desktop_systray_notifications';
# In F28+ we seem to get a network connection notification
# here. Let's dismiss it.
if (check_screen 'desktop_network_notification', 5) {
assert_and_click 'desktop_notification_dismiss';
}
}
if (get_var("BOOTFROM")) {
# we should see an update notification and no others