mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-27 20:53:09 +00:00
4243932d09
KDE in F34+ is now placing sleep, restart and shutdown buttons right on the system menu, not in a submenu. So we need to sort of tweak this logic. The approach here is: we count the GNOME submenu as both a "power" and "leave" menu, so the needle to enter it has both tags. KDE still has a "leave" submenu, but the power options are not in a submenu any more, so the new "leave" needle only has the leave tag, not the power tag. For "leave" actions we just unconditionally expect the "leave" tag; for power actions we first match on *either* the submenu tag (for GNOME and earlier KDE) *or* the action tag, click whatever we found, and then if we matched the submenu (not the action), we assert and click the action. After that all paths should be in sync again and we can continue. Signed-off-by: Adam Williamson <awilliam@redhat.com>
17 lines
206 B
JSON
17 lines
206 B
JSON
{
|
|
"properties": [],
|
|
"tags": [
|
|
"power_entry",
|
|
"leave_button"
|
|
],
|
|
"area": [
|
|
{
|
|
"xpos": 734,
|
|
"ypos": 226,
|
|
"width": 70,
|
|
"height": 19,
|
|
"type": "match"
|
|
}
|
|
]
|
|
}
|