'Scenario: The publish title changes after "Discard Changes" is clicked
Given I have a published unit with no unpublished changes
When I go to the unit page in Studio
Then the Discard Changes button is disabled
And I add a component to the unit
Then the title in the Publish information box is "Draft (Unpublished changes)"
And the Discard Changes button is enabled
And when I click the Discard Changes button
Then the title in the Publish information box is "Published and Live"'

def test_discard_changes(self):

    unit = self.go_to_unit_page()
    add_discussion(unit)
    unit.verify_publish_title(self.DRAFT_STATUS)
    unit.discard_changes()
    unit.verify_publish_title(self.PUBLISHED_LIVE_STATUS)
