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
533e0da1
Commit
533e0da1
authored
Aug 20, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add acceptance test for noneditable failing grade range.
parent
38165efd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
cms/djangoapps/contentstore/features/grading.feature
+6
-0
cms/djangoapps/contentstore/features/grading.py
+13
-0
No files found.
cms/djangoapps/contentstore/features/grading.feature
View file @
533e0da1
...
...
@@ -93,3 +93,9 @@ Feature: Course Grading
And
I press the
"Save"
notification button
And
I reload the page
Then
I see the highest grade range is
"Good"
Scenario
:
User cannot edit failing grade range name
Given
I have opened a new course in Studio
And
I have populated the course
And
I am viewing the grading settings
Then
I cannot edit the
"Fail"
grade range
cms/djangoapps/contentstore/features/grading.py
View file @
533e0da1
...
...
@@ -4,6 +4,7 @@
from
lettuce
import
world
,
step
from
common
import
*
from
terrain.steps
import
reload_the_page
from
selenium.common.exceptions
import
InvalidElementStateException
@step
(
u'I am viewing the grading settings'
)
...
...
@@ -130,6 +131,18 @@ def i_see_highest_grade_range(_step, range_name):
grade
=
world
.
css_find
(
range_css
)
.
first
assert
grade
.
value
==
range_name
@step
(
u'I cannot edit the "Fail" grade range$'
)
def
cannot_edit_fail
(
_step
):
range_css
=
'span.letter-grade'
ranges
=
world
.
css_find
(
range_css
)
assert
len
(
ranges
)
==
2
try
:
ranges
.
last
.
value
=
'Failure'
assert
False
,
"Should not be able to edit failing range"
except
InvalidElementStateException
:
pass
# We should get this exception on failing to edit the element
def
get_type_index
(
name
):
name_id
=
'#course-grading-assignment-name'
all_types
=
world
.
css_find
(
name_id
)
...
...
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