problem-editor.feature 3 KB
Newer Older
cahrens committed
1
Feature: Problem Editor
cahrens committed
2
  As a course author, I want to be able to create problems and edit their settings.
cahrens committed
3 4

  Scenario: User can view metadata
cahrens committed
5
    Given I have created a Blank Common Problem
6
    When I edit and select Settings
cahrens committed
7 8 9 10 11
    Then I see five alphabetized settings and their expected values
    And Edit High Level Source is not visible

  Scenario: User can modify String values
    Given I have created a Blank Common Problem
12
    When I edit and select Settings
cahrens committed
13 14 15
    Then I can modify the display name
    And my display name change is persisted on save

16 17
  Scenario: User can specify special characters in String values
    Given I have created a Blank Common Problem
18
    When I edit and select Settings
19 20 21
    Then I can specify special characters in the display name
    And my special characters and persisted on save

cahrens committed
22 23
  Scenario: User can revert display name to unset
    Given I have created a Blank Common Problem
24
    When I edit and select Settings
cahrens committed
25 26 27 28 29
    Then I can revert the display name to unset
    And my display name is unset on save

  Scenario: User can select values in a Select
    Given I have created a Blank Common Problem
30
    When I edit and select Settings
cahrens committed
31 32 33 34 35 36
    Then I can select Per Student for Randomization
    And my change to randomization is persisted
    And I can revert to the default value for randomization

  Scenario: User can modify float input values
    Given I have created a Blank Common Problem
37
    When I edit and select Settings
38
    Then I can set the weight to "3.5"
cahrens committed
39 40 41 42 43
    And my change to weight is persisted
    And I can revert to the default value of unset for weight

  Scenario: User cannot type letters in float number field
    Given I have created a Blank Common Problem
44
    When I edit and select Settings
45
    Then if I set the weight to "abc", it remains unset
cahrens committed
46 47 48

  Scenario: User cannot type decimal values integer number field
    Given I have created a Blank Common Problem
49
    When I edit and select Settings
50
    Then if I set the max attempts to "2.34", it displays initially as "234", and is persisted as "234"
cahrens committed
51 52 53

  Scenario: User cannot type out of range values in an integer number field
    Given I have created a Blank Common Problem
54
    When I edit and select Settings
55
    Then if I set the max attempts to "-3", it displays initially as "-3", and is persisted as "0"
cahrens committed
56 57 58

  Scenario: Settings changes are not saved on Cancel
    Given I have created a Blank Common Problem
59
    When I edit and select Settings
60
    Then I can set the weight to "3.5"
cahrens committed
61 62 63 64 65
    And I can modify the display name
    Then If I press Cancel my changes are not persisted

  Scenario: Edit High Level source is available for LaTeX problem
    Given I have created a LaTeX Problem
66
    When I edit and select Settings
cahrens committed
67
    Then Edit High Level Source is visible
68 69 70

  Scenario: High Level source is persisted for LaTeX problem (bug STUD-280)
    Given I have created a LaTeX Problem
71
    When I edit and compile the High Level Source
72 73
    Then my change to the High Level Source is persisted
    And when I view the High Level Source I see my changes