def test_firefox_android_nightly(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product('Firefox Android Nightly') product.select_platform('Intel devices (Android 4.1+ x86 CPU)') assert page.is_download_button_displayed assert page.is_download_link_valid assert 'product=fennec-nightly-latest' and 'os=android' and 'lang=multi' in page.download_link
def test_firefox_esr(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product('Firefox Extended Support Release') product.select_platform('Linux 32-bit') product.select_language('English (US)') assert page.is_download_button_displayed assert page.is_download_link_valid assert 'product=firefox-esr-latest-ssl' and 'os=linux' and 'lang=en-US' in page.download_link
def test_firefox_developer(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product('Firefox Developer Edition') product.select_platform('Linux 64-bit') product.select_language('English (US)') assert page.is_download_button_displayed assert page.is_download_link_valid assert 'product=firefox-devedition-latest-ssl' and 'os=linux64' and 'lang=en-US' in page.download_link
def test_firefox_nightly(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product('Firefox Nightly') product.select_platform('Windows 32-bit') product.select_language(u'German — Deutsch') assert page.is_download_button_displayed assert page.is_download_link_valid assert 'product=firefox-nightly-latest-ssl' and 'os=win' and 'lang=de' in page.download_link
def test_firefox_release(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product('Firefox') product.select_platform('Windows 64-bit') product.select_language('English (US)') assert page.is_download_button_displayed assert page.is_download_link_valid assert 'product=firefox-latest-ssl' and 'os=win64' and 'lang=en-US' in page.download_link
def test_firefox_beta(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product('Firefox Beta') product.select_platform('macOS') product.select_language(u'German — Deutsch') assert page.is_download_button_displayed assert page.is_download_link_valid assert 'product=firefox-beta-latest-ssl' and 'os=osx' and 'lang=de' in page.download_link
def test_firefox_nightly(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product("Firefox Nightly") product.select_platform("Windows 32-bit") product.select_language("German — Deutsch") assert page.is_desktop_download_button_displayed assert page.is_desktop_download_link_valid assert "product=firefox-nightly-latest-ssl" and "os=win" and "lang=de" in page.desktop_download_link
def test_firefox_esr(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product("Firefox Extended Support Release") product.select_platform("Linux 32-bit") product.select_language("English (US)") assert page.is_desktop_download_button_displayed assert page.is_desktop_download_link_valid assert "product=firefox-esr-latest-ssl" and "os=linux" and "lang=en-US" in page.desktop_download_link
def test_firefox_developer(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product("Firefox Developer Edition") product.select_platform("Linux 64-bit") product.select_language("English (US)") assert page.is_desktop_download_button_displayed assert page.is_desktop_download_link_valid assert "product=firefox-devedition-latest-ssl" and "os=linux64" and "lang=en-US" in page.desktop_download_link
def test_firefox_beta(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product("Firefox Beta") product.select_platform("macOS") product.select_language("German — Deutsch") assert page.is_desktop_download_button_displayed assert page.is_desktop_download_link_valid assert "product=firefox-beta-latest-ssl" and "os=osx" and "lang=de" in page.desktop_download_link
def test_firefox_release(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() product = page.select_product("Firefox") product.select_platform("Windows 64-bit") product.select_language("English (US)") assert page.is_desktop_download_button_displayed assert page.is_desktop_download_link_valid assert "product=firefox-latest-ssl" and "os=win64" and "lang=en-US" in page.desktop_download_link
def test_firefox_ios(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() page.select_product("Firefox iOS") assert page.is_ios_download_button_displayed
def test_firefox_android_nightly(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() page.select_product("Firefox Android Nightly") assert page.is_android_nightly_download_button_displayed
def test_firefox_android_beta(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() page.select_product('Firefox Android Beta') assert page.is_android_beta_download_button_displayed
def test_search_language(base_url, selenium): page = FirefoxAllPage(selenium, base_url).open() language = 'english' page.search_for(language) for build in page.displayed_builds: assert language in build.language.lower()