101 lines
3.7 KiB
Gherkin
101 lines
3.7 KiB
Gherkin
@shard_1
|
|
Feature: CMS.Component Adding
|
|
As a course author, I want to be able to add a wide variety of components
|
|
|
|
Scenario: I can add single step components
|
|
Given I am in Studio editing a new unit
|
|
When I add this type of single step component:
|
|
| Component |
|
|
| Discussion |
|
|
| Video |
|
|
Then I see this type of single step component:
|
|
| Component |
|
|
| Discussion |
|
|
| Video |
|
|
|
|
Scenario: I can add HTML components
|
|
Given I am in Studio editing a new unit
|
|
When I add this type of HTML component:
|
|
| Component |
|
|
| Text |
|
|
| Announcement |
|
|
Then I see HTML components in this order:
|
|
| Component |
|
|
| Text |
|
|
| Announcement |
|
|
|
|
Scenario: I can add Latex HTML components
|
|
Given I am in Studio editing a new unit
|
|
Given I have enabled latex compiler
|
|
When I add this type of HTML component:
|
|
| Component |
|
|
| E-text Written in LaTeX |
|
|
Then I see HTML components in this order:
|
|
| Component |
|
|
| E-text Written in LaTeX |
|
|
|
|
Scenario: I can add Common Problem components
|
|
Given I am in Studio editing a new unit
|
|
When I add this type of Problem component:
|
|
| Component |
|
|
| Blank Common Problem |
|
|
| Checkboxes |
|
|
| Dropdown |
|
|
| Multiple Choice |
|
|
| Numerical Input |
|
|
| Text Input |
|
|
Then I see Problem components in this order:
|
|
| Component |
|
|
| Blank Common Problem |
|
|
| Checkboxes |
|
|
| Dropdown |
|
|
| Multiple Choice |
|
|
| Numerical Input |
|
|
| Text Input |
|
|
|
|
Scenario Outline: I can add Advanced Problem components
|
|
Given I am in Studio editing a new unit
|
|
When I add a "<Component>" "Advanced Problem" component
|
|
Then I see a "<Component>" Problem component
|
|
# Flush out the database before the next example executes
|
|
And I reset the database
|
|
|
|
Examples:
|
|
| Component |
|
|
| Blank Advanced Problem |
|
|
| Circuit Schematic Builder |
|
|
| Custom Python-Evaluated Input |
|
|
| Drag and Drop |
|
|
| Image Mapped Input |
|
|
| Math Expression Input |
|
|
| Problem with Adaptive Hint |
|
|
|
|
|
|
Scenario: I can add Advanced Latex Problem components
|
|
Given I am in Studio editing a new unit
|
|
Given I have enabled latex compiler
|
|
When I add a "<Component>" "Advanced Problem" component
|
|
Then I see a "<Component>" Problem component
|
|
# Flush out the database before the next example executes
|
|
And I reset the database
|
|
|
|
Examples:
|
|
| Component |
|
|
| Problem Written in LaTeX |
|
|
| Problem with Adaptive Hint in Latex |
|
|
|
|
Scenario: I see a prompt on delete
|
|
Given I am in Studio editing a new unit
|
|
And I add a "Discussion" "single step" component
|
|
And I delete a component
|
|
Then I am shown a prompt
|
|
|
|
Scenario: I can delete Components
|
|
Given I am in Studio editing a new unit
|
|
And I add a "Discussion" "single step" component
|
|
And I add a "Text" "HTML" component
|
|
And I add a "Blank Common Problem" "Problem" component
|
|
And I add a "Blank Advanced Problem" "Advanced Problem" component
|
|
And I delete all components
|
|
Then I see no components
|