Commit 07c54dcb by Andy Armstrong

Fix up edit_component so that it doesn't take an unnecessary step argument

parent 415fe8d3
......@@ -169,11 +169,11 @@ def change_display_name(step, display_name):
world.edit_component_and_select_settings()
index = world.get_setting_entry_index(DISPLAY_NAME)
world.set_field_value(index, display_name)
world.save_component(step)
world.save_component()
@step(u'I unset the display name')
def unset_display_name(step):
world.edit_component_and_select_settings()
world.revert_setting_entry(DISPLAY_NAME)
world.save_component(step)
world.save_component()
......@@ -133,7 +133,7 @@ def enter_xml_in_advanced_problem(step, text):
"""
world.edit_component()
type_in_codemirror(0, text)
world.save_component(step)
world.save_component()
@world.absorb
......@@ -183,14 +183,14 @@ def verify_all_setting_entries(expected_entries):
@world.absorb
def save_component(step):
def save_component():
world.css_click("a.action-save")
world.wait_for_ajax_complete()
@world.absorb
def save_component_and_reopen(step):
save_component(step)
save_component()
# We have a known issue that modifications are still shown within the edit window after cancel (though)
# they are not persisted. Refresh the browser to make sure the changes WERE persisted after Save.
reload_the_page(step)
......
......@@ -123,7 +123,7 @@ def perform_action_in_plugin(action):
@step('I save the page$')
def i_click_on_save(step):
world.save_component(step)
world.save_component()
@step('the page text contains:')
......
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