Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
533e0da1
Commit
533e0da1
authored
11 years ago
by
Peter Fogg
Browse files
Options
Downloads
Patches
Plain Diff
Add acceptance test for noneditable failing grade range.
parent
38165efd
No related branches found
Branches containing commit
Tags
release-2021-02-11-09.41
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/djangoapps/contentstore/features/grading.feature
+6
-0
6 additions, 0 deletions
cms/djangoapps/contentstore/features/grading.feature
cms/djangoapps/contentstore/features/grading.py
+13
-0
13 additions, 0 deletions
cms/djangoapps/contentstore/features/grading.py
with
19 additions
and
0 deletions
cms/djangoapps/contentstore/features/grading.feature
+
6
−
0
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
This diff is collapsed.
Click to expand it.
cms/djangoapps/contentstore/features/grading.py
+
13
−
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment