'Publish the unit.'

@wait_for_js
def publish(self):

    click_css(self, self._bounded_selector('.action-publish'), require_notification=False)
    modal = CourseOutlineModal(self)
    EmptyPromise((lambda : modal.is_shown()), 'Modal    is    shown.')
    modal.publish()
