diff --git a/cms/djangoapps/contentstore/features/subsection.py b/cms/djangoapps/contentstore/features/subsection.py index afce527014..edc8b17168 100644 --- a/cms/djangoapps/contentstore/features/subsection.py +++ b/cms/djangoapps/contentstore/features/subsection.py @@ -92,6 +92,7 @@ def the_subsection_does_not_exist(step): css = 'span.subsection-name' assert world.browser.is_element_not_present_by_css(css) + @step('I see the correct dates$') def i_see_the_correct_dates(step): assert_equal('12/25/2011', get_date('input#start_date')) @@ -105,6 +106,7 @@ def i_see_the_correct_dates(step): def get_date(css): return world.css_find(css).first.value.strip() + def save_subsection_name(name): name_css = 'input.new-subsection-name-input' save_css = 'input.new-subsection-name-save' diff --git a/common/djangoapps/terrain/browser.py b/common/djangoapps/terrain/browser.py index 5d0c627dde..b0b6db3ad7 100644 --- a/common/djangoapps/terrain/browser.py +++ b/common/djangoapps/terrain/browser.py @@ -38,6 +38,7 @@ LOGGER.info("Loading the lettuce acceptance testing terrain file...") MAX_VALID_BROWSER_ATTEMPTS = 20 + @before.harvest def initial_setup(server): """ @@ -73,6 +74,7 @@ def initial_setup(server): if not success: raise IOError("Could not acquire valid ChromeDriver browser session.") + @before.each_scenario def reset_data(scenario): """