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
5e423414
Commit
5e423414
authored
Sep 27, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing tests, again
parent
8551917e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
common/test/acceptance/tests/lms/test_progress_page.py
+0
-1
lms/djangoapps/courseware/features/lti.feature
+2
-2
lms/djangoapps/courseware/features/lti.py
+0
-1
lms/templates/courseware/progress_graph.js
+11
-7
No files found.
common/test/acceptance/tests/lms/test_progress_page.py
View file @
5e423414
...
...
@@ -10,7 +10,6 @@ import ddt
from
..helpers
import
UniqueCourseTest
,
auto_auth
,
create_multiple_choice_problem
from
...fixtures.course
import
CourseFixture
,
XBlockFixtureDesc
from
lettuce
import
world
from
nose.plugins.attrib
import
attr
from
...pages.common.logout
import
LogoutPage
from
...pages.lms.courseware
import
CoursewarePage
...
...
lms/djangoapps/courseware/features/lti.feature
View file @
5e423414
...
...
@@ -49,7 +49,7 @@ Feature: LMS.LTI component
And
I submit answer to LTI 1 question
And
I click on the
"Progress"
tab
Then I see text "Problem Scores
:
5/10"
And I see graph with total progress "
Overall grade
:
5%"
And
I see graph with total progress
"5%"
Then
I click on the
"Instructor"
tab
And
I click the
"Student Admin"
button
And
I click on the
"View Gradebook"
link
...
...
@@ -77,7 +77,7 @@ Feature: LMS.LTI component
And
I submit answer to LTI 1 question
And
I click on the
"Progress"
tab
Then I see text "Problem Scores
:
5/10"
And I see graph with total progress "
Overall grade
:
5%"
And
I see graph with total progress
"5%"
#9
Scenario
:
Graded LTI component in LMS is correctly works with LTI2v0 PUT callback
...
...
lms/djangoapps/courseware/features/lti.py
View file @
5e423414
...
...
@@ -338,7 +338,6 @@ def see_graph(_step, progress):
progress
=
progress
,
)
node
=
world
.
browser
.
find_by_xpath
(
xpath
)
assert
node
...
...
lms/templates/courseware/progress_graph.js
View file @
5e423414
...
...
@@ -144,17 +144,21 @@ $(function () {
for
(
var
n
=
0
;
n
<
series_order_object
.
length
;
n
++
)
{
if
(
detail_tooltips
[
series_order_object
[
n
].
label
].
length
>
1
)
{
series_order_object
[
n
].
description
=
detail_tooltips
[
series_order_object
[
n
].
label
][
c
];
for
(
var
m
=
0
;
m
<
droppedScores
[
0
].
length
;
m
++
)
{
if
(
series_order_object
[
n
].
tick
===
droppedScores
[
0
][
m
])
{
series_order_object
[
n
].
description
=
series_order_object
[
n
].
description
+
' '
+
detail_tooltips
[
"Dropped Scores"
][
0
];
if
(
droppedScores
[
0
])
{
for
(
var
m
=
0
;
m
<
droppedScores
[
0
].
length
;
m
++
)
{
if
(
series_order_object
[
n
].
tick
===
droppedScores
[
0
][
m
])
{
series_order_object
[
n
].
description
=
series_order_object
[
n
].
description
+
' '
+
detail_tooltips
[
"Dropped Scores"
][
0
];
}
}
c
++
;
}
c
++
;
}
else
{
series_order_object
[
n
].
description
=
detail_tooltips
[
series_order_object
[
n
].
label
][
0
];
for
(
var
m
=
0
;
m
<
droppedScores
[
0
].
length
;
m
++
)
{
if
(
series_order_object
[
n
].
tick
===
droppedScores
[
0
][
m
])
{
series_order_object
[
n
].
description
=
series_order_object
[
n
].
description
+
' '
+
detail_tooltips
[
"Dropped Scores"
][
0
];
if
(
droppedScores
[
0
])
{
for
(
var
m
=
0
;
m
<
droppedScores
[
0
].
length
;
m
++
)
{
if
(
series_order_object
[
n
].
tick
===
droppedScores
[
0
][
m
])
{
series_order_object
[
n
].
description
=
series_order_object
[
n
].
description
+
' '
+
detail_tooltips
[
"Dropped Scores"
][
0
];
}
}
}
}
...
...
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