mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-21 02:08:29 +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>
62 KiB
1024x768px
62 KiB
1024x768px