Commit 07f8b8e9 by Ben Patterson

Correct flaky condition on tooltip.

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