52 lines
2.0 KiB
Gherkin
52 lines
2.0 KiB
Gherkin
Feature: 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 only display_name on a newly created course
|
|
Given I have opened a new course in Studio
|
|
When I select the Advanced Settings
|
|
Then I see only the display name
|
|
|
|
Scenario: Test if there are no policy settings without existing UI controls
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I delete the display name
|
|
Then there are no advanced policy settings
|
|
And I reload the page
|
|
Then there are no advanced policy settings
|
|
|
|
Scenario: Test cancel editing key name
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I edit the name of a policy key
|
|
And I press the "Cancel" notification button
|
|
Then the policy key name is unchanged
|
|
|
|
Scenario: Test editing key name
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I edit the name of a policy key
|
|
And I press the "Save" notification button
|
|
Then the policy key name is changed
|
|
|
|
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
|
|
|
|
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 I press the "Save" notification button
|
|
Then the policy key value is changed
|
|
|
|
Scenario: Add new entries, and they appear alphabetically after save
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I create New Entries
|
|
Then they are alphabetized
|
|
And I reload the page
|
|
Then they are alphabetized
|
|
|
|
Scenario: Test how multi-line input appears
|
|
Given I am on the Advanced Course Settings page in Studio
|
|
When I create a JSON object
|
|
Then it is displayed as formatted
|