'Update and publish the block/unit display name.'

def update_and_publish_block_display_name(self, modified_name):

    self.studio_course_outline_page.visit()
    self.studio_course_outline_page.wait_for_page()
    self.studio_course_outline_page.expand_all_subsections()
    section = self.studio_course_outline_page.section_at(0)
    container_page = section.subsection_at(0).unit_at(0).go_to()
    self.course_fixture._update_xblock(container_page.locator, {'metadata': {'display_name': modified_name}})
    container_page.visit()
    container_page.wait_for_page()
    self.assertEqual(container_page.name, modified_name)
    container_page.publish_action.click()
