advanced-settings.feature 1.91 KB
Newer Older
cahrens committed
1 2
Feature: Advanced (manual) course policy
  In order to specify course policy settings for which no custom user interface exists
Will Daly committed
3
  I want to be able to manually enter JSON key /value pairs
cahrens committed
4

5 6 7 8
  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
cahrens committed
9

10 11 12
  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
13

14
  # Skipped because Ubuntu ChromeDriver cannot click notification "Cancel"
15
  @skip
16 17 18 19 20 21 22
  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
23

24
  # Skipped because Ubuntu ChromeDriver cannot click notification "Save"
25
  @skip
26 27
  Scenario: Test editing key value
    Given I am on the Advanced Course Settings page in Studio
28
    When I edit the value of a policy key and save
29
    Then the policy key value is changed
30 31 32
    And I reload the page
    Then the policy key value is changed

33
  # Skipped because Ubuntu ChromeDriver cannot edit CodeMirror input
34
  @skip
35
  Scenario: Test how multi-line input appears
36 37 38 39 40 41
    Given I am on the Advanced Course Settings page in Studio
    When I create a JSON object as a value
    Then it is displayed as formatted
    And I reload the page
    Then it is displayed as formatted

42
  # Skipped because Ubuntu ChromeDriver cannot edit CodeMirror input
43
  @skip
44
  Scenario: Test automatic quoting of non-JSON values
45
    Given I am on the Advanced Course Settings page in Studio
46
    When I create a non-JSON value not in quotes
47 48 49
    Then it is displayed as a string
    And I reload the page
    Then it is displayed as a string