Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
92fc452b
Commit
92fc452b
authored
Jun 17, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change the wording of problem steps to follow Given, When, Then... convention.
parent
298417c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
cms/djangoapps/contentstore/features/problem-editor.feature
+12
-12
cms/djangoapps/contentstore/features/problem-editor.py
+1
-1
No files found.
cms/djangoapps/contentstore/features/problem-editor.feature
View file @
92fc452b
...
...
@@ -3,71 +3,71 @@ Feature: Problem Editor
Scenario
:
User can view metadata
Given
I have created a Blank Common Problem
And
I edit and select Settings
When
I edit and select Settings
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
And
I edit and select Settings
When
I edit and select Settings
Then
I can modify the display name
And
my display name change is persisted on save
Scenario
:
User can specify special characters in String values
Given
I have created a Blank Common Problem
And
I edit and select Settings
When
I edit and select Settings
Then
I can specify special characters in the display name
And
my special characters and persisted on save
Scenario
:
User can revert display name to unset
Given
I have created a Blank Common Problem
And
I edit and select Settings
When
I edit and select Settings
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
And
I edit and select Settings
When
I edit and select Settings
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
And
I edit and select Settings
When
I edit and select Settings
Then
I can set the weight to
"3.5"
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
And
I edit and select Settings
When
I edit and select Settings
Then
if I set the weight to
"abc"
, it remains unset
Scenario
:
User cannot type decimal values integer number field
Given
I have created a Blank Common Problem
And
I edit and select Settings
When
I edit and select Settings
Then
if I set the max attempts to
"2.34"
, it displays initially as
"234"
, and is persisted as
"234"
Scenario
:
User cannot type out of range values in an integer number field
Given
I have created a Blank Common Problem
And
I edit and select Settings
When
I edit and select Settings
Then
if I set the max attempts to
"-3"
, it displays initially as
"-3"
, and is persisted as
"0"
Scenario
:
Settings changes are not saved on Cancel
Given
I have created a Blank Common Problem
And
I edit and select Settings
When
I edit and select Settings
Then
I can set the weight to
"3.5"
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
And
I edit and select Settings
When
I edit and select Settings
Then
Edit High Level Source is visible
Scenario
:
High Level source is persisted for LaTeX problem (bug STUD-280)
Given
I have created a LaTeX Problem
And
I edit
the High Level Source
When
I edit and compile
the High Level Source
Then
my change to the High Level Source is persisted
And
when I view the High Level Source I see my changes
cms/djangoapps/contentstore/features/problem-editor.py
View file @
92fc452b
...
...
@@ -159,7 +159,7 @@ def create_latex_problem(step):
world
.
click_component_from_menu
(
"i4x://edx/templates/problem/Problem_Written_in_LaTeX"
,
'.xmodule_CapaModule'
)
@step
(
'I edit the High Level Source'
)
@step
(
'I edit
and compile
the High Level Source'
)
def
edit_latex_source
(
step
):
world
.
css_click
(
'a.edit-button'
)
world
.
css_find
(
'.launch-latex-compiler'
)
.
find_by_css
(
'a'
)
.
click
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment