Conflicts: cms/djangoapps/contentstore/features/advanced-settings.feature cms/djangoapps/contentstore/features/checklists.feature cms/djangoapps/contentstore/features/component.feature cms/djangoapps/contentstore/features/course-overview.feature cms/djangoapps/contentstore/features/course-settings.feature cms/djangoapps/contentstore/features/course-team.feature cms/djangoapps/contentstore/features/course-updates.feature cms/djangoapps/contentstore/features/courses.feature cms/djangoapps/contentstore/features/discussion-editor.feature cms/djangoapps/contentstore/features/grading.feature cms/djangoapps/contentstore/features/html-editor.feature cms/djangoapps/contentstore/features/problem-editor.feature cms/djangoapps/contentstore/features/section.feature cms/djangoapps/contentstore/features/signup.feature cms/djangoapps/contentstore/features/static-pages.feature cms/djangoapps/contentstore/features/subsection.feature cms/djangoapps/contentstore/features/textbooks.feature cms/djangoapps/contentstore/features/upload.feature cms/djangoapps/contentstore/features/video-editor.feature cms/djangoapps/contentstore/features/video.feature lms/djangoapps/courseware/features/certificates.feature lms/djangoapps/courseware/features/help.feature lms/djangoapps/courseware/features/high-level-tabs.feature lms/djangoapps/courseware/features/homepage.feature lms/djangoapps/courseware/features/login.feature lms/djangoapps/courseware/features/lti.feature lms/djangoapps/courseware/features/navigation.feature lms/djangoapps/courseware/features/problems.feature lms/djangoapps/courseware/features/registration.feature lms/djangoapps/courseware/features/signup.feature lms/djangoapps/courseware/features/video.feature lms/djangoapps/courseware/features/word_cloud.feature
70 lines
2.6 KiB
Gherkin
70 lines
2.6 KiB
Gherkin
@shard_1
|
|
Feature: CMS.Advanced (manual) course policy
|
|
In order to specify course policy settings for which no custom user interface exists
|
|
I want to be able to manually enter JSON key /value pairs
|
|
|
|
|
|
Scenario: A course author sees default advanced settings
|
|
Given I have opened a new course in Studio
|
|
When I select the Advanced Settings
|
|
Then I see default advanced settings
|
|
|
|
Scenario: Add new entries, and they appear alphabetically after save
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
Then the settings are alphabetized
|
|
|
|
# Sauce labs does not play nicely with CodeMirror
|
|
@skip_sauce
|
|
Scenario: Test cancel editing key value
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I edit the value of a policy key
|
|
And I press the "Cancel" notification button
|
|
Then the policy key value is unchanged
|
|
And I reload the page
|
|
Then the policy key value is unchanged
|
|
|
|
# Sauce labs does not play nicely with CodeMirror
|
|
@skip_sauce
|
|
Scenario: Test editing key value
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I edit the value of a policy key and save
|
|
Then the policy key value is changed
|
|
And I reload the page
|
|
Then the policy key value is changed
|
|
|
|
# Sauce labs does not play nicely with CodeMirror
|
|
@skip_sauce
|
|
Scenario: Test how multi-line input appears
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I create a JSON object as a value for "discussion_topics"
|
|
Then it is displayed as formatted
|
|
And I reload the page
|
|
Then it is displayed as formatted
|
|
|
|
# Sauce labs does not play nicely with CodeMirror
|
|
@skip_sauce
|
|
Scenario: Test error if value supplied is of the wrong type
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I create a JSON object as a value for "display_name"
|
|
Then I get an error on save
|
|
And I reload the page
|
|
Then the policy key value is unchanged
|
|
|
|
# This feature will work in Firefox only when Firefox is the active window
|
|
# Sauce labs does not play nicely with CodeMirror
|
|
@skip_sauce
|
|
Scenario: Test automatic quoting of non-JSON values
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I create a non-JSON value not in quotes
|
|
Then it is displayed as a string
|
|
And I reload the page
|
|
Then it is displayed as a string
|
|
|
|
# Sauce labs does not play nicely with CodeMirror
|
|
@skip_sauce
|
|
Scenario: Confirmation is shown on save
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I edit the value of a policy key
|
|
And I press the "Save" notification button
|
|
Then I see a confirmation that my changes have been saved
|