discussion-editor.py 764 Bytes
Newer Older
cahrens committed
1
# disable missing docstring
2
# pylint: disable=missing-docstring
cahrens committed
3 4 5

from lettuce import world, step

6

cahrens committed
7
@step('I have created a Discussion Tag$')
cahrens committed
8
def i_created_discussion_tag(step):
9
    step.given('I am in Studio editing a new unit')
10
    world.create_component_instance(
11 12
        step=step,
        category='discussion',
13 14
    )

cahrens committed
15 16

@step('I see three alphabetized settings and their expected values$')
cahrens committed
17
def i_see_only_the_settings_and_values(step):
cahrens committed
18 19
    world.verify_all_setting_entries(
        [
20
            ['Category', "Week 1", False],
21
            ['Display Name', "Discussion", False],
22
            ['Subcategory', "Topic-Level Student-Visible Label", False]
cahrens committed
23
        ])
24 25 26 27 28


@step('I edit the component$')
def i_edit_and_select_settings(_step):
    world.edit_component()