'Scenario: The publish title changes based on whether or not draft content exists
Given I have a published unit with no unpublished changes
When I go to the unit page in Studio
Then the title in the Publish information box is "Published and Live"
And the Publish button is disabled
And the last published text contains "Last published"
And the last saved text contains "Last published"
And when I add a component to the unit
Then the title in the Publish information box is "Draft (Unpublished changes)"
And the last saved text contains "Draft saved on"
And the Publish button is enabled
And when I click the Publish button
Then the title in the Publish information box is "Published and Live"
And the last published text contains "Last published"
And the last saved text contains "Last published"'

def test_publishing(self):

    unit = self.go_to_unit_page()
    unit.verify_publish_title(self.PUBLISHED_LIVE_STATUS)
    self._verify_release_date_info(unit, self.RELEASE_TITLE_RELEASED, 'Jan    01,    1970    at    00:00    UTC\nwith    Section    "Test    Section"')
    self._verify_last_published_and_saved(unit, self.LAST_PUBLISHED, self.LAST_PUBLISHED)
    add_discussion(unit)
    unit.verify_publish_title(self.DRAFT_STATUS)
    self._verify_last_published_and_saved(unit, self.LAST_PUBLISHED, self.LAST_SAVED)
    unit.publish_action.click()
    unit.wait_for_ajax()
    unit.verify_publish_title(self.PUBLISHED_LIVE_STATUS)
    self._verify_last_published_and_saved(unit, self.LAST_PUBLISHED, self.LAST_PUBLISHED)
