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

This commit is contained in:
Andy Armstrong
2014-04-02 18:18:59 -04:00
parent 415fe8d396
commit 07c54dcbaa
3 changed files with 6 additions and 6 deletions

View File

@@ -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()

View File

@@ -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)

View File

@@ -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:')