Ejemplo n.º 1
0
def i_edit_blank_problem_for_annotation_response(_step):
    world.edit_component(1)
    text = """
        <problem>
            <annotationresponse>
                <annotationinput><text>Text of annotation</text></annotationinput>
            </annotationresponse>
        </problem>"""
    type_in_codemirror(0, text)
    world.save_component()
Ejemplo n.º 2
0
def i_edit_blank_problem_for_annotation_response(_step):
    world.edit_component(1)
    text = """
        <problem>
            <annotationresponse>
                <annotationinput><text>Text of annotation</text></annotationinput>
            </annotationresponse>
        </problem>"""
    type_in_codemirror(0, text)
    world.save_component()
Ejemplo n.º 3
0
def change_value(step, key, new_value):
    index = get_index_of(key)
    type_in_codemirror(index, new_value)
    press_the_notification_button(step, "Save")
    world.wait_for_ajax_complete()
Ejemplo n.º 4
0
def change_text(text):
    type_in_codemirror(0, text)
    save_css = '.save-button'
    world.css_click(save_css)
Ejemplo n.º 5
0
def edit_handouts(_step, text):
    type_in_codemirror(0, text)
Ejemplo n.º 6
0
def test_change_course_overview(_step):
    type_in_codemirror(0, "<h1>Overview</h1>")
Ejemplo n.º 7
0
def test_change_course_overview(_step):
    type_in_codemirror(0, "<h1>Overview</h1>")
Ejemplo n.º 8
0
def change_text(text):
    type_in_codemirror(0, text)
    save_css = '.save-button'
    world.css_click(save_css)
Ejemplo n.º 9
0
def edit_handouts(_step, text):
    type_in_codemirror(0, text)
Ejemplo n.º 10
0
def edit_latex_source(_step):
    open_high_level_source()
    type_in_codemirror(1, "hi")
    world.css_click('.hls-compile')
Ejemplo n.º 11
0
def edit_latex_source(_step):
    open_high_level_source()
    type_in_codemirror(1, "hi")
    world.css_click('.hls-compile')