def METHOD_NAME(group, action, enabled=True):
    wait_action_in_group(group, action)
    with glib_util.SignalWait(group, f'action-enabled-changed::{action}') as w:
        while group.get_action_enabled(action) != enabled:
            w.wait()