Commit fc899ab1 by JonahStanley

Stylistic change and factored out method to common

parent 43bee860
......@@ -66,6 +66,13 @@ def add_tab_to_course(_step, course, extra_tab_name):
display_name=str(extra_tab_name))
@step(u'I am in a course$')
def go_into_course(step):
step.given('I am registered for the course "6.002x"')
step.given('And I am logged in')
step.given('And I click on View Courseware')
def course_id(course_num):
return "%s/%s/%s" % (world.scenario_dict['COURSE'].org, course_num,
world.scenario_dict['COURSE'].display_name.replace(" ", "_"))
......
......@@ -36,13 +36,6 @@ def see_confirmation(step):
assert world.browser.evaluate_script("$('input[value=\"Submit\"]').attr('disabled')") == 'disabled'
@step(u'I am in a course')
def go_into_course(step):
step.given('I am registered for the course "6.002x"')
step.given('And I am logged in')
step.given('And I click on View Courseware')
def fill_field(name, info):
def fill_info():
form_css = 'form.feedback_form'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment