Fixed test annotation component failing on Chrome

This commit is contained in:
raeeschachar
2016-01-12 18:41:36 +05:00
parent d6673ca3fd
commit c790b62aa0

View File

@@ -9,6 +9,7 @@ from ..pages.lms.courseware import CoursewarePage
from ..pages.lms.annotation_component import AnnotationComponentPage
from ..fixtures.course import CourseFixture, XBlockFixtureDesc
from textwrap import dedent
from ..tests.helpers import disable_animations
def _correctness(choice, target):
@@ -124,6 +125,8 @@ class AnnotatableProblemTest(UniqueCourseTest):
"""
annotation_component_page = self._goto_annotation_component_page()
# This will avoid scrolling related problems on different browsers and instead directly jump on the problem
disable_animations(annotation_component_page)
for i in xrange(self.annotation_count):
annotation_component_page.click_reply_annotation(i)