Esempio n. 1
0
def i_created_blank_html_page(step):
    step.given('I am in Studio editing a new unit')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='Text'
    )
Esempio n. 2
0
def i_created_raw_html(step):
    step.given('I am in Studio editing a new unit')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='Raw HTML'
    )
Esempio n. 3
0
def i_created_raw_html(step):
    step.given('I am in Studio editing a new unit')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='Raw HTML'
    )
Esempio n. 4
0
def i_created_a_video_component(step):
    world.create_component_instance(
        step, '.large-video-icon',
        'video',
        '.xmodule_VideoModule',
        has_multiple_templates=False
    )
Esempio n. 5
0
def i_created_discussion_tag(step):
    world.create_component_instance(
        step, '.large-discussion-icon',
        'discussion',
        '.xmodule_DiscussionModule',
        has_multiple_templates=False
    )
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. 7
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_create_new_advanced_problem(step, component_type):
    world.create_component_instance(
        step=step,
        category='problem',
        component_type=component_type,
        is_advanced=True
    )
Esempio n. 9
0
def i_created_blank_common_problem(step):
    world.create_component_instance(
        step,
        '.large-problem-icon',
        'i4x://edx/templates/problem/Blank_Common_Problem',
        '.xmodule_CapaModule'
    )
Esempio n. 10
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. 11
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. 12
0
def i_create_new_advanced_component(step, component_type, advanced_component):
    world.create_component_instance(
        step=step,
        category='advanced',
        component_type=component_type,
        advanced_component=advanced_component
    )
Esempio n. 13
0
def create_latex_problem(step):
    step.given('I am in Studio editing a new 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. 14
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. 15
0
def i_created_blank_html_page(step):
    step.given('I am in Studio editing a new unit')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='Text'
    )
Esempio n. 16
0
def i_created_a_video_component(step):
    world.create_component_instance(
        step, '.large-video-icon',
        'video',
        '.xmodule_VideoModule',
        has_multiple_templates=False
    )
Esempio n. 17
0
def i_create_new_advanced_problem(step, component_type):
    world.create_component_instance(
        step=step,
        category='problem',
        component_type=component_type,
        is_advanced=True
    )
def i_create_new_advanced_component(step, component_type, advanced_component):
    world.create_component_instance(
        step=step,
        category='advanced',
        component_type=component_type,
        advanced_component=advanced_component
    )
Esempio n. 19
0
def i_created_blank_common_problem(step):
    world.create_component_instance(
        step,
        '.large-problem-icon',
        'i4x://edx/templates/problem/Blank_Common_Problem',
        '.xmodule_CapaModule'
    )
Esempio n. 20
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. 21
0
def i_created_etext_in_latex(step):
    step.given('I am in Studio editing a new unit')
    step.given('I have enabled latex compiler')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='E-text Written in LaTeX'
    )
Esempio n. 22
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. 23
0
def i_created_blank_html_page(step):
    world.create_component_instance(
        step,
        '.large-html-icon',
        'html',
        '.xmodule_HtmlModule',
        'latex_html.yaml'
    )
def i_created_blank_common_problem(step):
    world.create_component_instance(
        step,
        '.large-problem-icon',
        'problem',
        '.xmodule_CapaModule',
        'blank_common.yaml'
    )
Esempio n. 25
0
def add_a_multi_step_component(step, is_advanced, category):
    for step_hash in step.hashes:
        world.create_component_instance(
            step=step,
            category='{}'.format(category.lower()),
            component_type=step_hash['Component'],
            is_advanced=bool(is_advanced),
        )
Esempio n. 26
0
def i_created_blank_common_problem(step):
    world.create_component_instance(
        step,
        '.large-problem-icon',
        'problem',
        '.xmodule_CapaModule',
        'blank_common.yaml'
    )
Esempio n. 27
0
def add_a_multi_step_component(step, is_advanced, category):
    for step_hash in step.hashes:
        world.create_component_instance(
            step=step,
            category='{}'.format(category.lower()),
            component_type=step_hash['Component'],
            is_advanced=bool(is_advanced),
        )
Esempio n. 28
0
def i_created_etext_in_latex(step):
    step.given('I am in Studio editing a new unit')
    step.given('I have enabled latex compiler')
    world.create_component_instance(
        step=step,
        category='html',
        component_type='E-text Written in LaTeX'
    )
Esempio n. 29
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'
    )
Esempio n. 30
0
def create_latex_problem(step):
    step.given('I am in Studio editing a new 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
    )
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. 32
0
def add_a_single_step_component(step):
    for step_hash in step.hashes:
        component = step_hash['Component']
        assert_in(component, ['Discussion', 'Video'])

        world.create_component_instance(
            step=step,
            category='{}'.format(component.lower()),
        )
Esempio n. 33
0
def add_a_single_step_component(step):
    for step_hash in step.hashes:
        component = step_hash['Component']
        assert_in(component, ['Discussion', 'Video'])

        world.create_component_instance(
            step=step,
            category='{}'.format(component.lower()),
        )
Esempio n. 34
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. 35
0
def i_created_a_video_component(step):
    step.given("I am in Studio editing a new 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. 36
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. 37
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. 38
0
def i_created_a_video_component(step):
    step.given('I am in Studio editing a new 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. 39
0
def i_created_a_video_component(step):
    step.given('I am in Studio editing a new 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. 40
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. 41
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. 42
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. 43
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')
Esempio n. 44
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. 45
0
def i_created_a_video_component(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='video',
    )
Esempio n. 46
0
def i_created_blank_html_page(step):
    world.create_component_instance(step, '.large-html-icon', 'html',
                                    '.xmodule_HtmlModule')
def i_create_new_common_problem(step):
    world.create_component_instance(
        step=step,
        category='problem',
        component_type='Blank Common Problem'
    )
Esempio n. 48
0
def i_created_discussion_tag(step):
    world.create_component_instance(
        step, '.large-discussion-icon',
        'i4x://edx/templates/discussion/Discussion_Tag',
        '.xmodule_DiscussionModule'
    )
Esempio n. 49
0
def i_created_a_video_component(step):
    world.create_component_instance(step, '.large-video-icon',
                                    'i4x://edx/templates/video/default',
                                    '.xmodule_VideoModule')
Esempio n. 50
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. 51
0
def i_created_discussion_tag(step):
    world.create_component_instance(
        step, '.large-discussion-icon',
        'i4x://edx/templates/discussion/Discussion_Tag',
        '.xmodule_DiscussionModule'
    )
def i_created_discussion_tag(step):
    world.create_component_instance(step,
                                    '.large-discussion-icon',
                                    'discussion',
                                    '.xmodule_DiscussionModule',
                                    has_multiple_templates=False)
Esempio n. 53
0
def i_created_discussion_tag(step):
    step.given('I am in Studio editing a new unit')
    world.create_component_instance(
        step=step,
        category='discussion',
    )
Esempio n. 54
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. 55
0
def i_created_blank_html_page(step):
    world.create_component_instance(
        step, '.large-html-icon', 'i4x://edx/templates/html/Blank_HTML_Page',
        '.xmodule_HtmlModule'
    )
Esempio n. 56
0
def i_created_a_video_component(step):
    world.create_component_instance(
        step, '.large-video-icon',
        'i4x://edx/templates/video/default',
        '.xmodule_VideoModule'
    )
Esempio n. 57
0
def i_created_discussion_tag(step):
    world.create_course_with_unit()
    world.create_component_instance(
        step=step,
        category='discussion',
    )
Esempio n. 58
0
def i_create_new_common_problem(step):
    world.create_component_instance(step=step,
                                    category='problem',
                                    component_type='Blank Common Problem')
Esempio n. 59
0
def i_created_a_video_component(step):
    world.create_component_instance(
        step, '.large-video-icon',
        'video',
        '.xmodule_VideoModule'
    )