def confirm_prompt(_step): world.confirm_studio_prompt()
def delete_file(_step, file_name): index = get_index(file_name) assert index != -1 delete_css = "a.remove-asset-button" world.css_click(delete_css, index=index) world.confirm_studio_prompt()
def other_delete_self(_step): to_delete_css = '.user-item .item-actions a.remove-user[data-id="{email}"]'.format( email="*****@*****.**") world.css_click(to_delete_css) world.confirm_studio_prompt()
def delete_other_user(_step, name): to_delete_css = '.user-item .item-actions a.remove-user[data-id="{email}"]'.format( email="{0}{1}".format(name, '@edx.org')) world.css_click(to_delete_css) world.confirm_studio_prompt()