Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #743 from AndreiH/issue_739
Browse files Browse the repository at this point in the history
Adding coverage for other applications menu
  • Loading branch information
phoenix1moz committed Jan 16, 2015
2 parents 684f5f3 + ef89972 commit 0612fee
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/desktop/test_homepage.py
Expand Up @@ -260,3 +260,28 @@ def test_that_checks_all_categories_side_navigation(self, mozwebqa):
Assert.equal('Tabs', category_region.categories_tabs_header_text)
Assert.equal('Web Development', category_region.categories_web_development_header_text)
Assert.equal('Other', category_region.categories_other_header_text)

@pytest.mark.nondestructive
def test_that_checks_other_applications_menu(self, mozwebqa):
home_page = Home(mozwebqa)

# Thunderbird
Assert.true(home_page.header.is_other_application_visible("Thunderbird"))
home_page.header.click_other_application("Thunderbird")
current_page_url = home_page.get_url_current_page()
Assert.true(current_page_url.endswith("/thunderbird/"))
Assert.contains('Thunderbird Add-ons', home_page.amo_logo_title)

# Android
Assert.true(home_page.header.is_other_application_visible("Android"))
home_page.header.click_other_application("Android")
current_page_url = home_page.get_url_current_page()
Assert.true(current_page_url.endswith("/android/"))
Assert.contains('Android Add-ons', home_page.amo_logo_title)

# Seamonkey
Assert.true(home_page.header.is_other_application_visible("Seamonkey"))
home_page.header.click_other_application("Seamonkey")
current_page_url = home_page.get_url_current_page()
Assert.true(current_page_url.endswith("/seamonkey/"))
Assert.contains('SeaMonkey Add-ons', home_page.amo_logo_title)

0 comments on commit 0612fee

Please sign in to comment.