mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-09-10 02:27:23 +00:00
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
![](/srbala/os-autoinst-distri-fedora/raw/commit/8028586183a4b1ca6bb4a5a37d3d91c2c3f2c3ff/needles/kde/reboot_entry_kde-20210212.png)