Commit 07f8b8e9 by Ben Patterson

Correct flaky condition on tooltip.

parent bea3663e
......@@ -84,8 +84,10 @@ class CoursewarePage(CoursePage):
"""
for index, tab in enumerate(self.q(css='#sequence-list > li')):
ActionChains(self.browser).move_to_element(tab).perform()
if not self.q(css='#tab_{index} > p'.format(index=index)).visible:
return False
self.wait_for_element_visibility(
'#tab_{index} > p'.format(index=index),
'Tab {index} should appear'.format(index=index)
)
return True
......
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