Files
edx-platform/cms/djangoapps/contentstore/features/discussion-editor.py
2014-12-01 11:22:09 -05:00

29 lines
764 B
Python

# disable missing docstring
# pylint: disable=missing-docstring
from lettuce import world, step
@step('I have created a Discussion Tag$')
def i_created_discussion_tag(step):
step.given('I am in Studio editing a new unit')
world.create_component_instance(
step=step,
category='discussion',
)
@step('I see three alphabetized settings and their expected values$')
def i_see_only_the_settings_and_values(step):
world.verify_all_setting_entries(
[
['Category', "Week 1", False],
['Display Name', "Discussion", False],
['Subcategory', "Topic-Level Student-Visible Label", False]
])
@step('I edit the component$')
def i_edit_and_select_settings(_step):
world.edit_component()