'Wait for a status message to be visible following third_party registration, then return it.'

@unguarded
def wait_for_auth_status_message(self):

    def _check_func():
        'Return    third    party    auth    status    notice    message.'
        selector = '.js-auth-warning    div'
        msg_element = self.q(css=selector)
        if msg_element.visible:
            return (True, msg_element.text[0])
        return (False, None)
    return Promise(_check_func, 'Result    of    third    party    auth    is    visible').fulfill()
