Exemple #1
0
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
Exemple #2
0
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
Exemple #3
0
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
Exemple #4
0
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
Exemple #5
0
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
Exemple #6
0
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
Exemple #7
0
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
Exemple #8
0
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
Exemple #9
0
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
Exemple #10
0
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
Exemple #11
0
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
Exemple #12
0
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
Exemple #13
0
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
Exemple #14
0
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
Exemple #15
0
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()