Commit 6034df25 by Albert St. Aubin

This check is no longer valid, removing it as focus is not on the header

button
parent 93e0ca47
......@@ -353,14 +353,6 @@ class AssessmentPage(OpenAssessmentPage, AssessmentMixin):
return self.q(css=css_class).is_present()
@property
def is_on_top(self):
# TODO: On top behavior needs to be better defined. It is defined here more accurately as "near-top".
# pos = self.browser.get_window_position()
# return pos['y'] < 100
# self.wait_for_element_visibility(".chapter.is-open", "Chapter heading is on visible", timeout=10)
return self.q(css=".chapter.is-open").visible
@property
def response_text(self):
"""
Retrieve the text of the response shown in the assessment.
......
......@@ -300,9 +300,6 @@ class SelfAssessmentTest(OpenAssessmentTest):
# Submit a response
self.do_self_assessment()
# Check browser scrolled back to top of assessment
self.assertTrue(self.self_asmnt_page.is_on_top)
@retry()
@attr('acceptance')
def test_latex(self):
......
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