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

Update Activities button handling for latest GNOME

Make the 'deactivate overview if it's active' thing a bit more
robust by asserting the inactive state after deactivating it,
and add new needles for the new RC (text got a bit brighter).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-03-16 17:24:08 -07:00
parent eec43a4e2b
commit 05dfbef1a8
6 changed files with 45 additions and 3 deletions

View File

@ -865,7 +865,10 @@ sub check_desktop {
assert_screen "apps_menu_button", $args{timeout};
# GNOME 40 starts on the overview by default; for consistency with
# older GNOME and KDE, let's just close it
send_key "alt-f1" if match_has_tag "apps_menu_button_active";
if (match_has_tag "apps_menu_button_active") {
send_key "alt-f1";
assert_screen "apps_menu_button_inactive";
}
}
sub download_modularity_tests {

View File

@ -13,6 +13,7 @@
"DESKTOP-gnome",
"ENV-DISTRI-fedora",
"LANGUAGE-english",
"apps_menu_button"
"apps_menu_button",
"apps_menu_button_inactive"
]
}
}

View File

@ -0,0 +1,19 @@
{
"area": [
{
"xpos": 15,
"height": 15,
"ypos": 9,
"type": "match",
"width": 67
}
],
"properties": [],
"tags": [
"DESKTOP-gnome",
"ENV-DISTRI-fedora",
"LANGUAGE-english",
"apps_menu_button",
"apps_menu_button_inactive"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 KiB

View File

@ -0,0 +1,19 @@
{
"area": [
{
"height": 15,
"xpos": 15,
"ypos": 9,
"type": "match",
"width": 67
}
],
"properties": [],
"tags": [
"DESKTOP-gnome",
"ENV-DISTRI-fedora",
"LANGUAGE-english",
"apps_menu_button",
"apps_menu_button_active"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 KiB