'Click the submit button on the response editor'

def submit_response_edit(self, response_id, new_response_body):

    def submit_response_check_func():
        '\n                                                Tries    to    click    "Update    post"    and    returns    True    if    the    post\n                                                was    successfully    updated,    False    otherwise.\n                                                '
        self._find_within('.response_{}    .discussion-response    .post-update'.format(response_id)).first.click()
        return ((not self.is_response_editor_visible(response_id)) and self.is_response_visible(response_id) and (self.get_response_body(response_id) == new_response_body))
    self.wait_for(submit_response_check_func, 'Comment    edit    succeeded')
