本文整理汇总了Python中terrain.steps.reload_the_page函数的典型用法代码示例。如果您正苦于以下问题:Python reload_the_page函数的具体用法?Python reload_the_page怎么用?Python reload_the_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了reload_the_page函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: xml_only_video
def xml_only_video(step):
# Create a new video *without* metadata. This requires a certain
# amount of rummaging to make sure all the correct data is present
step.given('I have clicked the new unit button')
# Wait for the new unit to be created and to load the page
world.wait(1)
location = world.scenario_dict['COURSE'].location
store = get_modulestore(location)
parent_location = store.get_items(Location(category='vertical', revision='draft'))[0].location
youtube_id = 'ABCDEFG'
world.scenario_dict['YOUTUBE_ID'] = youtube_id
# Create a new Video component, but ensure that it doesn't have
# metadata. This allows us to test that we are correctly parsing
# out XML
video = world.ItemFactory.create(
parent_location=parent_location,
category='video',
data='<video youtube="1.00:%s"></video>' % youtube_id
)
# Refresh to see the new video
reload_the_page(step)
开发者ID:AzizYosofi,项目名称:edx-platform,代码行数:27,代码来源:video.py
示例2: tasks_correctly_selected_after_reload
def tasks_correctly_selected_after_reload(step):
reload_the_page(step)
verifyChecklist2Status(2, 7, 29)
# verify that task 7 is still selected by toggling its checkbox state and
# making sure that it deselects
toggleTask(1, 6)
verifyChecklist2Status(1, 7, 14)
开发者ID:hughdbrown,项目名称:edx-platform,代码行数:7,代码来源:checklists.py
示例3: video_name_persisted
def video_name_persisted(step):
world.css_click("a.save-button")
reload_the_page(step)
world.wait_for_xmodule()
world.edit_component()
world.verify_setting_entry(world.get_setting_entry("Display Name"), "Display Name", "3.4", True)
开发者ID:nettoyeur,项目名称:edx-platform,代码行数:7,代码来源:video-editor.py
示例4: save_component_and_reopen
def save_component_and_reopen(step):
world.css_click("a.save-button")
world.wait_for_ajax_complete()
# 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)
edit_component_and_select_settings()
开发者ID:ngocchung75,项目名称:edx-platform,代码行数:7,代码来源:component_settings_editor_helpers.py
示例5: video_name_persisted
def video_name_persisted(step):
world.save_component()
reload_the_page(step)
world.wait_for_xmodule()
world.edit_component()
world.verify_setting_entry(
world.get_setting_entry('Display Name'),
'Display Name', '3.4', True
)
开发者ID:geekfu,项目名称:edx-platform,代码行数:10,代码来源:video-editor.py
示例6: video_name_persisted
def video_name_persisted(step):
world.save_component()
reload_the_page(step)
world.wait_for_xmodule()
world.edit_component()
world.verify_setting_entry(
world.get_setting_entry(DISPLAY_NAME),
DISPLAY_NAME, '3.4', True
)
开发者ID:Certific-NET,项目名称:edx-platform,代码行数:10,代码来源:video_editor.py
示例7: verify_report_is_generated
def verify_report_is_generated(report_name_substring):
# Need to reload the page to see the reports table updated
reload_the_page(step)
world.wait_for_visible("#report-downloads-table")
# Find table and assert a .csv file is present
quoted_id = http.urlquote(world.course_key).replace("/", "_")
expected_file_regexp = quoted_id + "_" + report_name_substring + "_\d{4}-\d{2}-\d{2}-\d{4}\.csv"
assert_regexp_matches(
world.css_html("#report-downloads-table"), expected_file_regexp, msg="Expected report filename was not found."
)
开发者ID:mrstephencollins,项目名称:edx-platform,代码行数:10,代码来源:data_download.py
示例8: find_grade_report_csv_link
def find_grade_report_csv_link(step): # pylint: disable=unused-argument
# Need to reload the page to see the grades download table
reload_the_page(step)
world.wait_for_visible('#report-downloads-table')
# Find table and assert a .csv file is present
expected_file_regexp = 'edx_999_Test_Course_grade_report_\d{4}-\d{2}-\d{2}-\d{4}\.csv'
assert_regexp_matches(
world.css_html('#report-downloads-table'), expected_file_regexp,
msg="Expected grade report filename was not found."
)
开发者ID:Cuentafalsa,项目名称:edx-platform,代码行数:10,代码来源:data_download.py
示例9: find_grade_report_csv_link
def find_grade_report_csv_link(step): # pylint: disable=unused-argument
# Need to reload the page to see the grades download table
reload_the_page(step)
world.wait_for_visible('#report-downloads-table')
# Find table and assert a .csv file is present
quoted_id = http.urlquote(world.course_key).replace('/', '_')
expected_file_regexp = quoted_id + '_grade_report_\d{4}-\d{2}-\d{2}-\d{4}\.csv'
assert_regexp_matches(
world.css_html('#report-downloads-table'), expected_file_regexp,
msg="Expected grade report filename was not found."
)
开发者ID:nchuopenedx,项目名称:edx-platform,代码行数:11,代码来源:data_download.py
示例10: test_then_i_see_the_set_dates_on_refresh
def test_then_i_see_the_set_dates_on_refresh(step):
reload_the_page(step)
verify_date_or_time(COURSE_START_DATE_CSS, '12/20/2013')
verify_date_or_time(COURSE_END_DATE_CSS, '12/26/2013')
verify_date_or_time(ENROLLMENT_START_DATE_CSS, '12/01/2013')
verify_date_or_time(ENROLLMENT_END_DATE_CSS, '12/10/2013')
verify_date_or_time(COURSE_START_TIME_CSS, DUMMY_TIME)
# Unset times get set to 12 AM once the corresponding date has been set.
verify_date_or_time(COURSE_END_TIME_CSS, DEFAULT_TIME)
verify_date_or_time(ENROLLMENT_START_TIME_CSS, DEFAULT_TIME)
verify_date_or_time(ENROLLMENT_END_TIME_CSS, DUMMY_TIME)
开发者ID:2bj,项目名称:edx-platform,代码行数:12,代码来源:course-settings.py
示例11: test_then_i_see_cleared_dates_on_refresh
def test_then_i_see_cleared_dates_on_refresh(step):
reload_the_page(step)
verify_date_or_time(COURSE_END_DATE_CSS, '')
verify_date_or_time(ENROLLMENT_START_DATE_CSS, '')
verify_date_or_time(ENROLLMENT_END_DATE_CSS, '')
verify_date_or_time(COURSE_END_TIME_CSS, '')
verify_date_or_time(ENROLLMENT_START_TIME_CSS, '')
verify_date_or_time(ENROLLMENT_END_TIME_CSS, '')
# Verify course start date (required) and time still there
verify_date_or_time(COURSE_START_DATE_CSS, '12/20/2013')
verify_date_or_time(COURSE_START_TIME_CSS, DUMMY_TIME)
开发者ID:AzizYosofi,项目名称:edx-platform,代码行数:13,代码来源:course-settings.py
示例12: save_component_and_reopen
def save_component_and_reopen(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)
edit_component_and_select_settings()
开发者ID:189140879,项目名称:edx-platform,代码行数:6,代码来源:component_settings_editor_helpers.py
示例13: test_the_previously_set_start_date_is_shown_on_refresh
def test_the_previously_set_start_date_is_shown_on_refresh(step):
reload_the_page(step)
verify_date_or_time(COURSE_START_DATE_CSS, '12/20/2013')
verify_date_or_time(COURSE_START_TIME_CSS, DUMMY_TIME)
开发者ID:AzizYosofi,项目名称:edx-platform,代码行数:4,代码来源:course-settings.py
示例14: test_then_i_see_the_set_dates_on_refresh
def test_then_i_see_the_set_dates_on_refresh(step):
reload_the_page(step)
i_see_the_set_dates()
开发者ID:AzizYosofi,项目名称:edx-platform,代码行数:3,代码来源:course-settings.py
示例15: test_my_new_course_start_date_is_shown_on_refresh
def test_my_new_course_start_date_is_shown_on_refresh(step):
reload_the_page(step)
verify_date_or_time(COURSE_START_DATE_CSS, '12/22/2013')
# Time should have stayed from before attempt to clear date.
verify_date_or_time(COURSE_START_TIME_CSS, DUMMY_TIME)
开发者ID:AzizYosofi,项目名称:edx-platform,代码行数:5,代码来源:course-settings.py
示例16: cancel_component
def cancel_component(step):
world.css_click("a.action-cancel")
# 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 not persisted.
reload_the_page(step)
开发者ID:189140879,项目名称:edx-platform,代码行数:5,代码来源:component_settings_editor_helpers.py
示例17: videoalpha_name_persisted
def videoalpha_name_persisted(step):
world.css_click('a.save-button')
reload_the_page(step)
world.edit_component()
world.verify_setting_entry(world.get_setting_entry('Display Name'), 'Display Name', '3.4', True)
开发者ID:Negotiare,项目名称:edx-platform,代码行数:5,代码来源:video.py
示例18: changes_not_persisted
def changes_not_persisted(step):
reload_the_page(step)
name_id = "#course-grading-assignment-name"
assert_equal(world.css_value(name_id), "Homework")
开发者ID:ahmadiga,项目名称:min_edx,代码行数:4,代码来源:grading.py
示例19: changes_not_persisted
def changes_not_persisted(step):
reload_the_page(step)
name_id = '#course-grading-assignment-name'
assert(world.css_value(name_id) == 'Homework')
开发者ID:Cabris,项目名称:edx-platform,代码行数:4,代码来源:grading.py
示例20: changes_not_persisted
def changes_not_persisted(step):
reload_the_page(step)
name_id = '#course-grading-assignment-name'
ele = world.css_find(name_id)[0]
assert(ele.value == 'Homework')
开发者ID:bearstech,项目名称:edx-platform,代码行数:5,代码来源:grading.py
注:本文中的terrain.steps.reload_the_page函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论