Permalink
Browse files

Merge pull request #73 from zacc/addon_count_step

Add step to click on filter before checking indexing.
  • Loading branch information...
AlinT committed Sep 26, 2012
2 parents 77bfa59 + eddf67e commit 927731f98a88174e0b6984f75a109d6baa1b4e44
Showing with 5 additions and 0 deletions.
  1. +3 −0 pages/dashboard_page.py
  2. +2 −0 tests/test_addon_count.py
View
@@ -37,6 +37,9 @@ def addons_count_label(self):
def addons_element_count(self):
return len(self.selenium.find_elements(*self.Addon._base_locator))
+ def click_public_addons_link(self):
+ self.selenium.find_element(*self._public_addons_link).click()
+
def click_private_addons_link(self):
self.selenium.find_element(*self._private_addons_link).click()
@@ -21,6 +21,8 @@ def test_addon_count(self, mozwebqa):
dashboard_obj = loginpage_obj.login()
Assert.true(dashboard_obj.is_the_current_page)
+ dashboard_obj.click_public_addons_link()
+
#Get the total count of the number of add-ons that are displayed on the dashboard.
addon_count = dashboard_obj.addons_element_count()

0 comments on commit 927731f

Please sign in to comment.