Permalink
Browse files

Adding Test for Balkans community

  • Loading branch information...
retornam committed Jul 22, 2014
1 parent 8db9f53 commit 55649bbed2ed873dcc83fc7c43fd636590753d9c
Showing with 15 additions and 2 deletions.
  1. +13 −1 pages/desktop/contact.py
  2. +2 −1 tests/test_contact.py
View
@@ -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,
@@ -162,6 +166,11 @@ def africa_middle_east_communities(self):
return self.selenium.find_elements(By.CSS_SELECTOR,
'#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
@@ -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 55649bb

Please sign in to comment.