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
210101dc
Commit
210101dc
authored
Mar 28, 2013
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1759 from MITx/bug/christina/grading
Bug fix for grading type not showing on course outline (#258).
parents
c9a7be6b
7279f9c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
cms/djangoapps/contentstore/features/subsection.feature
+8
-0
cms/djangoapps/contentstore/features/subsection.py
+12
-1
cms/templates/overview.html
+1
-1
No files found.
cms/djangoapps/contentstore/features/subsection.feature
View file @
210101dc
...
...
@@ -17,6 +17,14 @@ Feature: Create Subsection
And
I click to edit the subsection name
Then
I see the complete subsection name with a quote in the editor
Scenario
:
Assign grading type to a subsection and verify it is still shown after refresh (bug
#258)
Given
I have opened a new course section in Studio
And
I have added a new subsection
And
I mark it as Homework
Then
I see it marked as Homework
And
I reload the page
Then
I see it marked as Homework
@skip-phantom
Scenario
:
Delete a subsection
Given
I have opened a new course section in Studio
...
...
cms/djangoapps/contentstore/features/subsection.py
View file @
210101dc
...
...
@@ -40,7 +40,7 @@ def i_click_to_edit_subsection_name(step):
def
i_see_complete_subsection_name_with_quote_in_editor
(
step
):
css
=
'.subsection-display-name-input'
assert
world
.
is_css_present
(
css
)
assert_equal
(
world
.
browser
.
find_by_css
(
css
)
.
value
,
'Subsection With "Quote"'
)
assert_equal
(
world
.
css_find
(
css
)
.
value
,
'Subsection With "Quote"'
)
@step
(
'I have added a new subsection$'
)
...
...
@@ -48,6 +48,17 @@ def i_have_added_a_new_subsection(step):
add_subsection
()
@step
(
'I mark it as Homework$'
)
def
i_mark_it_as_homework
(
step
):
world
.
css_click
(
'a.menu-toggle'
)
world
.
browser
.
click_link_by_text
(
'Homework'
)
@step
(
'I see it marked as Homework$'
)
def
i_see_it_marked__as_homework
(
step
):
assert_equal
(
world
.
css_find
(
".status-label"
)
.
value
,
'Homework'
)
############ ASSERTIONS ###################
...
...
cms/templates/overview.html
View file @
210101dc
...
...
@@ -200,7 +200,7 @@
</a>
</div>
<div
class=
"gradable-status"
data-initial-status=
"${subsection.lms.format if section.lms.format is not None else 'Not Graded'}"
>
<div
class=
"gradable-status"
data-initial-status=
"${subsection.lms.format if s
ubs
ection.lms.format is not None else 'Not Graded'}"
>
</div>
<div
class=
"item-actions"
>
...
...
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