4243932 Adjust desktop_login and needles for KDE power option changes

Authored and Committed by adamwill 3 years ago
    Adjust desktop_login and needles for KDE power option changes
    
    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>
    
        
empty file added
file modified
+26 -22