Esempio n. 1
0
def i_created_blank_common_problem(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='problem',
        component_type='Blank Common Problem'
    )
def i_created_blank_common_problem(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='problem',
        component_type='Blank Common Problem'
    )
Esempio n. 3
0
def i_created_etext_in_latex(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='html',
        component_type='E-text Written in LaTeX'
    )
Esempio n. 4
0
def create_latex_problem(step):
    world.create_course_with_unit()
    step.given('I have enabled latex compiler')
    world.create_component_instance(step=step,
                                    category='problem',
                                    component_type='Problem Written in LaTeX',
                                    is_advanced=True)
Esempio n. 5
0
def i_created_blank_html_page(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='html',
        component_type='Text'
    )
Esempio n. 6
0
def i_created_raw_html(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='html',
        component_type='Raw HTML'
    )
Esempio n. 7
0
def i_created_etext_in_latex(step):
    world.create_course_with_unit()
    step.given('I have enabled latex compiler')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='E-text Written in LaTeX'
    )
def create_latex_problem(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='problem',
        component_type='Problem Written in LaTeX',
        is_advanced=True
    )
def i_created_unit_with_advanced_module(step, advanced_module):
    world.create_course_with_unit()

    url = world.browser.url
    step.given("I select the Advanced Settings")
    change_value(step, ADVANCED_MODULES_KEY, '["{}"]'.format(advanced_module))
    world.visit(url)
    world.wait_for_xmodule()
def create_latex_problem(step):
    world.create_course_with_unit()
    step.given('I have enabled latex compiler')
    world.create_component_instance(
        step=step,
        category='problem',
        component_type='Problem Written in LaTeX',
        is_advanced=True
    )
Esempio n. 11
0
def i_created_a_video_component(step):
    world.create_course_with_unit()
    world.create_component_instance(step=step, category="video")

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present(".is-initialized")
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS["spinner"])
Esempio n. 12
0
def i_created_a_video_component(_step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=_step,
        category='video',
    )

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present('.is-initialized')
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS['spinner'])
Esempio n. 13
0
def i_created_a_video_component(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='video',
    )

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present('.is-initialized')
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS['spinner'])
Esempio n. 14
0
def i_created_a_video_component(_step):

    world.create_course_with_unit()
    world.create_component_instance(step=_step, category="video")

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present(".is-initialized")
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS["spinner"])
    if not world.youtube.config.get("youtube_api_blocked"):
        world.wait_for_visible(SELECTORS["controls"])
Esempio n. 15
0
def i_created_a_video_component(_step):

    world.create_course_with_unit()
    world.create_component_instance(
        step=_step,
        category='video',
    )

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present('.is-initialized')
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS['spinner'])
    if not world.youtube.config.get('youtube_api_blocked'):
        world.wait_for_visible(SELECTORS['controls'])
Esempio n. 16
0
def i_created_a_video_component(_step):

    assert_less(world.youtube.config['youtube_api_response'].status_code, 400,  "Real Youtube server is unavailable")

    world.create_course_with_unit()
    world.create_component_instance(
        step=_step,
        category='video',
    )

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present('.is-initialized')
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS['spinner'])
    if not world.youtube.config.get('youtube_api_blocked'):
        world.wait_for_visible(SELECTORS['controls'])
Esempio n. 17
0
def i_created_a_video_component(_step):

    assert_less(world.youtube.config['youtube_api_response'].status_code, 400,
                "Real Youtube server is unavailable")

    world.create_course_with_unit()
    world.create_component_instance(
        step=_step,
        category='video',
    )

    world.wait_for_xmodule()
    world.disable_jquery_animations()

    world.wait_for_present('.is-initialized')
    world.wait(DELAY)
    world.wait_for_invisible(SELECTORS['spinner'])
    if not world.youtube.config.get('youtube_api_blocked'):
        world.wait_for_visible(SELECTORS['controls'])
Esempio n. 18
0
def i_created_a_video_component(step):
    world.create_course_with_unit()
    world.create_component_instance(step=step, category="video")
Esempio n. 19
0
def i_created_a_video_component(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='video',
    )
Esempio n. 20
0
def i_created_blank_common_problem(step):
    world.create_course_with_unit()
    step.given("I have created another Blank Common Problem")
Esempio n. 21
0
def i_created_discussion_tag(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='discussion',
    )
Esempio n. 22
0
def i_created_raw_html(step):
    world.create_course_with_unit()
    world.create_component_instance(step=step,
                                    category='html',
                                    component_type='Raw HTML')
def i_created_blank_common_problem(step):
    world.create_course_with_unit()
    step.given("I have created another Blank Common Problem")
Esempio n. 24
0
def i_created_blank_html_page(step):
    world.create_course_with_unit()
    world.create_component_instance(step=step,
                                    category='html',
                                    component_type='Text')
Esempio n. 25
0
def i_created_etext_in_latex(step):
    world.create_course_with_unit()
    world.create_component_instance(step=step,
                                    category='html',
                                    component_type='E-text Written in LaTeX')
Esempio n. 26
0
def i_created_discussion_tag(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='discussion',
    )
Esempio n. 27
0
def create_latex_problem(step):
    world.create_course_with_unit()
    world.create_component_instance(step=step,
                                    category='problem',
                                    component_type='Problem Written in LaTeX',
                                    is_advanced=True)
Esempio n. 28
0
def i_created_etext_in_latex(step):
    world.create_course_with_unit()
    step.given('I have enabled latex compiler')
    world.create_component_instance(step=step,
                                    category='html',
                                    component_type='E-text Written in LaTeX')