Commit 902126d5 by Ben Patterson

Clarify method intent. Use BrokenPromise rather than assert.

parent 07f8b8e9
...@@ -78,9 +78,11 @@ class CoursewarePage(CoursePage): ...@@ -78,9 +78,11 @@ class CoursewarePage(CoursePage):
else: else:
return self.q(css=self.xblock_component_selector).attrs('innerHTML')[index].strip() return self.q(css=self.xblock_component_selector).attrs('innerHTML')[index].strip()
def tooltips_displayed(self): def verify_tooltips_displayed(self):
""" """
Verify if sequence navigation bar tooltips are being displayed upon mouse hover. Verify that all sequence navigation bar tooltips are being displayed upon mouse hover.
If a tooltip does not appear, raise a BrokenPromise.
""" """
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()
...@@ -89,8 +91,6 @@ class CoursewarePage(CoursePage): ...@@ -89,8 +91,6 @@ class CoursewarePage(CoursePage):
'Tab {index} should appear'.format(index=index) 'Tab {index} should appear'.format(index=index)
) )
return True
@property @property
def course_license(self): def course_license(self):
""" """
......
...@@ -864,7 +864,7 @@ class TooltipTest(UniqueCourseTest): ...@@ -864,7 +864,7 @@ class TooltipTest(UniqueCourseTest):
self.course_info_page.visit() self.course_info_page.visit()
self.tab_nav.go_to_tab('Courseware') self.tab_nav.go_to_tab('Courseware')
self.assertTrue(self.courseware_page.tooltips_displayed()) self.courseware_page.verify_tooltips_displayed()
@attr('shard_1') @attr('shard_1')
......
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