Commit d3ec1cb9 by Peter Fogg

Add tests for single-click discussion creation.

parent eff78bfd
...@@ -11,3 +11,7 @@ Feature: Discussion Component Editor ...@@ -11,3 +11,7 @@ Feature: Discussion Component Editor
And I edit and select Settings And I edit and select Settings
Then I can modify the display name Then I can modify the display name
And my display name change is persisted on save And my display name change is persisted on save
Scenario: Creating a discussion takes a single click
Given I have clicked the new unit button
Then creating a discussion takes a single click
...@@ -21,3 +21,10 @@ def i_see_only_the_settings_and_values(step): ...@@ -21,3 +21,10 @@ def i_see_only_the_settings_and_values(step):
['Display Name', "Discussion Tag", True], ['Display Name', "Discussion Tag", True],
['Subcategory', "Topic-Level Student-Visible Label", True] ['Subcategory', "Topic-Level Student-Visible Label", True]
]) ])
@step('creating a discussion takes a single click')
def discussion_takes_a_single_click(step):
assert(not world.is_css_present('.xmodule_DiscussionModule'))
world.css_click("a[data-location='i4x://edx/templates/discussion/Discussion_Tag']")
assert(world.is_css_present('.xmodule_DiscussionModule'))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment