From ea06bb8b4df47687356850935135e6a1865ee21b Mon Sep 17 00:00:00 2001 From: Agha Awais Date: Wed, 1 Aug 2018 12:53:05 +0000 Subject: [PATCH] removed lettuce tests for discussion component --- .../features/discussion-editor.feature | 16 ----------- .../features/discussion-editor.py | 28 ------------------- 2 files changed, 44 deletions(-) delete mode 100644 cms/djangoapps/contentstore/features/discussion-editor.feature delete mode 100644 cms/djangoapps/contentstore/features/discussion-editor.py diff --git a/cms/djangoapps/contentstore/features/discussion-editor.feature b/cms/djangoapps/contentstore/features/discussion-editor.feature deleted file mode 100644 index 53f32eddb7..0000000000 --- a/cms/djangoapps/contentstore/features/discussion-editor.feature +++ /dev/null @@ -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 diff --git a/cms/djangoapps/contentstore/features/discussion-editor.py b/cms/djangoapps/contentstore/features/discussion-editor.py deleted file mode 100644 index 804fedcc7e..0000000000 --- a/cms/djangoapps/contentstore/features/discussion-editor.py +++ /dev/null @@ -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()