Skip to content

Commit

Permalink
fix to test_partners
Browse files Browse the repository at this point in the history
  • Loading branch information
retornam committed May 8, 2012
1 parent 4e97ed4 commit 4fd8d60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pages/desktop/partners.py
Expand Up @@ -40,7 +40,7 @@ def are_pointer_images_visible(self):
self.is_element_visible(*self._target_consumers_image)

@property
def click_submit_apps_button(self):
element = self.selenium.find_element(*self._submit_apps_button).click()
WebDriverWait(self.selenium, self.timeout).until(lambda s: s.title)
return self.selenium.current_url
def check_submit_apps_button_url(self):
element = self.selenium.find_element(*self._submit_apps_button)
url = element.get_attribute('href')
return url
6 changes: 3 additions & 3 deletions tests/test_partners.py
Expand Up @@ -34,8 +34,8 @@ def test_partner_billboard_links(self, mozwebqa):
Assert.true(partners_page.is_opening_soon_image_visible)

@pytest.mark.nondestructive
def test_submit_app_button(self, mozwebqa):
def test_submit_app_button_url(self, mozwebqa):
partners_page = Partners(mozwebqa)
partners_page.go_to_page()
Assert.equal(partners_page.click_submit_apps_button,
'https://marketplace.mozilla.org/en-US/login')
Assert.equal(partners_page.check_submit_apps_button_url,
'http://marketplace.mozilla.org/')

0 comments on commit 4fd8d60

Please sign in to comment.