Merge pull request #18713 from edx/awais/removed_lettuce_tests_for_discussions

removed lettuce test points for discussion component
This commit is contained in:
Agha Awais
2018-08-02 17:57:17 +05:00
committed by GitHub
2 changed files with 0 additions and 44 deletions

View File

@@ -1,16 +0,0 @@
@shard_2
Feature: CMS.Discussion Component Editor
As a course author, I want to be able to create discussion components.
Scenario: User can view discussion component metadata
Given I have created a Discussion Tag
And I edit the component
Then I see three settings and their expected values
# Safari doesn't save the name properly
@skip_safari
Scenario: User can modify display name
Given I have created a Discussion Tag
And I edit the component
Then I can modify the display name
And my display name change is persisted on save

View File

@@ -1,28 +0,0 @@
# disable missing docstring
# pylint: disable=missing-docstring
from lettuce import step, world
@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 settings and their expected values$')
def i_see_only_the_settings_and_values(step):
world.verify_all_setting_entries(
[
['Display Name', "Discussion", False],
['Category', "Week 1", False],
['Subcategory', "Topic-Level Student-Visible Label", False]
])
@step('I edit the component$')
def i_edit_and_select_settings(_step):
world.edit_component()