Commit 5e423414 by Chris Rodriguez

Fixing tests, again

parent 8551917e
...@@ -10,7 +10,6 @@ import ddt ...@@ -10,7 +10,6 @@ import ddt
from ..helpers import UniqueCourseTest, auto_auth, create_multiple_choice_problem from ..helpers import UniqueCourseTest, auto_auth, create_multiple_choice_problem
from ...fixtures.course import CourseFixture, XBlockFixtureDesc from ...fixtures.course import CourseFixture, XBlockFixtureDesc
from lettuce import world
from nose.plugins.attrib import attr from nose.plugins.attrib import attr
from ...pages.common.logout import LogoutPage from ...pages.common.logout import LogoutPage
from ...pages.lms.courseware import CoursewarePage from ...pages.lms.courseware import CoursewarePage
......
...@@ -49,7 +49,7 @@ Feature: LMS.LTI component ...@@ -49,7 +49,7 @@ Feature: LMS.LTI component
And I submit answer to LTI 1 question And I submit answer to LTI 1 question
And I click on the "Progress" tab And I click on the "Progress" tab
Then I see text "Problem Scores: 5/10" 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 Then I click on the "Instructor" tab
And I click the "Student Admin" button And I click the "Student Admin" button
And I click on the "View Gradebook" link And I click on the "View Gradebook" link
...@@ -77,7 +77,7 @@ Feature: LMS.LTI component ...@@ -77,7 +77,7 @@ Feature: LMS.LTI component
And I submit answer to LTI 1 question And I submit answer to LTI 1 question
And I click on the "Progress" tab And I click on the "Progress" tab
Then I see text "Problem Scores: 5/10" 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 #9
Scenario: Graded LTI component in LMS is correctly works with LTI2v0 PUT callback Scenario: Graded LTI component in LMS is correctly works with LTI2v0 PUT callback
......
...@@ -338,7 +338,6 @@ def see_graph(_step, progress): ...@@ -338,7 +338,6 @@ def see_graph(_step, progress):
progress=progress, progress=progress,
) )
node = world.browser.find_by_xpath(xpath) node = world.browser.find_by_xpath(xpath)
assert node assert node
......
...@@ -144,17 +144,21 @@ $(function () { ...@@ -144,17 +144,21 @@ $(function () {
for (var n = 0; n < series_order_object.length; n++) { for (var n = 0; n < series_order_object.length; n++) {
if (detail_tooltips[series_order_object[n].label].length > 1) { if (detail_tooltips[series_order_object[n].label].length > 1) {
series_order_object[n].description = detail_tooltips[series_order_object[n].label][c]; series_order_object[n].description = detail_tooltips[series_order_object[n].label][c];
for (var m = 0; m < droppedScores[0].length; m++) { if (droppedScores[0]) {
if (series_order_object[n].tick === droppedScores[0][m]) { for (var m = 0; m < droppedScores[0].length; m++) {
series_order_object[n].description = series_order_object[n].description + ' ' + detail_tooltips["Dropped Scores"][0]; 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 { } else {
series_order_object[n].description = detail_tooltips[series_order_object[n].label][0]; series_order_object[n].description = detail_tooltips[series_order_object[n].label][0];
for (var m = 0; m < droppedScores[0].length; m++) { if (droppedScores[0]) {
if (series_order_object[n].tick === droppedScores[0][m]) { for (var m = 0; m < droppedScores[0].length; m++) {
series_order_object[n].description = series_order_object[n].description + ' ' + detail_tooltips["Dropped Scores"][0]; if (series_order_object[n].tick === droppedScores[0][m]) {
series_order_object[n].description = series_order_object[n].description + ' ' + detail_tooltips["Dropped Scores"][0];
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment