Permalink
Browse files

Merge pull request #328 from retornam/communities

Adding Test for Balkans community
  • Loading branch information...
2 parents 8db9f53 + 55649bb commit b35d84024ae3d3d3ec6ec738f806230f56e558d1 @dchunwong dchunwong committed Jul 22, 2014
Showing with 15 additions and 2 deletions.
  1. +13 −1 pages/desktop/contact.py
  2. +2 −1 tests/test_contact.py
View
14 pages/desktop/contact.py
@@ -137,6 +137,10 @@ def click_africa_middle_east(self):
self.selenium.find_element(By.CSS_SELECTOR,
'#nav-communities > ul > li[data-id=africa] > a').click()
+ def click_balkans(self):
+ self.selenium.find_element(By.CSS_SELECTOR,
+ '#nav-communities > ul > li[data-id=balkans] > a').click()
+
@property
def north_america_communities(self):
return self.selenium.find_elements(By.CSS_SELECTOR,
@@ -163,6 +167,11 @@ def africa_middle_east_communities(self):
'#nav-communities > ul > li[data-id=africa] > .submenu > li')
@property
+ def balkans_communities(self):
+ return self.selenium.find_elements(By.CSS_SELECTOR,
+ '#nav-communities > ul > li[data-id=balkans] > .submenu > li')
+
+ @property
def region_list(self):
return self.selenium.find_element(*self._region_list_locator)
@@ -202,7 +211,10 @@ def communities_links(self):
}, {
'locator': (By.CSS_SELECTOR, '#nav-communities > ul > li[data-id=hispano] > a'),
'url_suffix': '/contact/communities/hispano/'
- },
+ }, {
+ 'locator': (By.CSS_SELECTOR, '#nav-communities > ul > li[data-id=balkans] > a'),
+ 'url_suffix': '/contact/communities/balkans/'
+ }
]
region_legend_links_list = [
View
3 tests/test_contact.py
@@ -102,7 +102,8 @@ def test_region_dropdown_link(self, mozwebqa):
communities_page.latin_america_communities,
communities_page.europe_communities,
communities_page.asia_south_pacific_communities,
- communities_page.africa_middle_east_communities
+ communities_page.africa_middle_east_communities,
+ communities_page.balkans_communities
]
bad_communities = []
for index, action in enumerate(click_regions):

0 comments on commit b35d840

Please sign in to comment.