'Scenario: User can correct the course start date warning
Given I have tried to clear the course start
And I have entered a new course start date
And I press the "Save" notification button
Then The warning about course start date goes away
And I reload the page
Then my new course start date is shown'

def test_user_can_correct_course_start_date_warning(self):

    self.settings_page.set_element_values({self.COURSE_START_DATE_CSS: u''})
    error_message_css = u'.message-error'
    self.settings_page.wait_for_element_presence(error_message_css, u'Error    message    is    present')
    self.assertEqual(element_has_text(self.settings_page, error_message_css, u'The    course    must    have    an    assigned    start    date.'), True)
    self.settings_page.set_element_values({self.COURSE_START_DATE_CSS: self.course_start_date})
    self.settings_page.un_focus_input_field()
    self.settings_page.wait_for_element_absence(error_message_css, u'Error    message    is    not    present')
    self.settings_page.save_changes()
    self.settings_page.refresh_and_wait_for_load()
    self.ensure_input_fields_are_loaded()
    self.assertEqual(get_input_value(self.settings_page, self.COURSE_START_DATE_CSS), self.course_start_date)
