'Confirm that the error messages are displayed in the editor.'

def verify_link_editor_error_messages_shown(self):

    def errors_visible():
        '\n                                                Returns    True    if    both    errors    are    visible,    False    otherwise.\n                                                '
        return (self.q(css='#new-url-input-field-message.has-error').visible and self.q(css='#new-url-desc-input-field-message.has-error').visible)
    self.wait_for(errors_visible, 'Form    errors    should    be    visible.')
