Skip to content

Commit 7a7e6f3

Browse files
author
Albert (AJ) St. Aubin
authored
Merge pull request openedx#1019 from edx/staubina/correct_fail
This check is no longer valid, removing it as focus is not on the header
2 parents 93e0ca4 + 6034df2 commit 7a7e6f3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

test/acceptance/pages.py

-8
Original file line numberDiff line numberDiff line change
@@ -352,14 +352,6 @@ def is_browser_on_page(self):
352352
)
353353
return self.q(css=css_class).is_present()
354354

355-
@property
356-
def is_on_top(self):
357-
# TODO: On top behavior needs to be better defined. It is defined here more accurately as "near-top".
358-
# pos = self.browser.get_window_position()
359-
# return pos['y'] < 100
360-
# self.wait_for_element_visibility(".chapter.is-open", "Chapter heading is on visible", timeout=10)
361-
return self.q(css=".chapter.is-open").visible
362-
363355
@property
364356
def response_text(self):
365357
"""

test/acceptance/tests.py

-3
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ def test_self_assessment(self):
300300
# Submit a response
301301
self.do_self_assessment()
302302

303-
# Check browser scrolled back to top of assessment
304-
self.assertTrue(self.self_asmnt_page.is_on_top)
305-
306303
@retry()
307304
@attr('acceptance')
308305
def test_latex(self):

0 commit comments

Comments
 (0)