'Scenario: Users can edit updates
Given I have opened a new course in Studio
And I go to the course updates page
When I add a new update with the text "Hello"
And I modify the text to "Goodbye"
Then I should see the update "Goodbye"'

def test_new_course_update_can_be_edited(self):

    self._create_and_verify_update('Hello')
    self.assertTrue(self.course_updates_page.is_edit_button_present())
    self.course_updates_page.click_edit_update_button()
    self.course_updates_page.submit_update('Goodbye')
    self.assertFalse(self.course_updates_page.is_first_update_message('Hello'))
    self.assertTrue(self.course_updates_page.is_first_update_message('Goodbye'))
