'Scenario: User can set course dates
Given I have opened a new course in Studio
When I select Schedule and Details
And I set course dates
And I press the "Save" notification button
And I reload the page
Then I see the set dates'

def test_user_can_set_course_date(self):

    self.set_course_dates()
    time_dictionary = {self.COURSE_START_TIME_CSS: self.dummy_time, self.ENROLLMENT_END_TIME_CSS: self.dummy_time}
    self.settings_page.set_element_values(time_dictionary)
    self.settings_page.save_changes()
    self.settings_page.refresh_and_wait_for_load()
    self.ensure_input_fields_are_loaded()
    css_selectors = [self.COURSE_START_DATE_CSS, self.COURSE_END_DATE_CSS, self.ENROLLMENT_START_DATE_CSS, self.ENROLLMENT_END_DATE_CSS, self.COURSE_START_TIME_CSS, self.ENROLLMENT_END_TIME_CSS]
    expected_values = [self.course_start_date, self.course_end_date, self.enrollment_start_date, self.enrollment_end_date, self.dummy_time, self.dummy_time]
    self.assertEqual([get_input_value(self.settings_page, css_selector) for css_selector in css_selectors], expected_values)
