Commit a0680143 by Vik Paruchuri

Fix staff grading test

parent a6cc30d1
...@@ -476,9 +476,13 @@ class @StaffGrading ...@@ -476,9 +476,13 @@ class @StaffGrading
@question_header.text(new_text) @question_header.text(new_text)
scroll_to_top: () => scroll_to_top: () =>
$('html, body').animate({ #This try/catch is needed because jasmine fails with it
scrollTop: $(".staff-grading").offset().top try
}, 200) $('html, body').animate({
scrollTop: $(".staff-grading").offset().top
}, 200)
catch error
console.log("Scrolling error.")
......
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