зеркало из https://github.com/mozilla/bedrock.git
Родитель
fa7a13e1e6
Коммит
215a9512a4
|
@ -152,7 +152,7 @@
|
|||
<!--<![endif]-->
|
||||
|
||||
<!--[if IE 9]>
|
||||
{# IE9 has its own lib JS bundle containing dependencies for anaytics and consent management. #}
|
||||
{# IE9 has its own lib JS bundle containing dependencies for analytics and consent management. #}
|
||||
{{ js_bundle('lib-ie') }}
|
||||
<![endif]-->
|
||||
{% endblock %}
|
||||
|
|
|
@ -632,4 +632,6 @@ redirectpatterns = (
|
|||
redirect(r"^firefox/privacy/safe-passwords/?$", "firefox.features.password-manager"),
|
||||
redirect(r"^firefox/privacy/book/?$", "https://support.mozilla.org/kb/how-stay-safe-web"),
|
||||
redirect(r"^firefox/nothingpersonal/?$", "firefox.nothing-personal.index"),
|
||||
# issue 15841
|
||||
redirect(r"^firefox/tech/?$", "firefox.landing.tech"),
|
||||
)
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
{#
|
||||
This Source Code Form is subject to the terms of the Mozilla Public
|
||||
License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
#}
|
||||
|
||||
{% extends "firefox/new/desktop/download.html" %}
|
||||
|
||||
{% block canonical_urls %}<meta name="robots" content="noindex,follow">{% endblock %}
|
||||
|
||||
{% set win_custom_download_id = 'partner-firefox-release-smi-smi-001-stub' %}
|
||||
{% set mac_custom_download_id = 'partner-firefox-release-smi-smi-001-latest' %}
|
||||
|
||||
{% set android_campaign_url = play_store_url('firefox', 'custom-001') %}
|
||||
{% set ios_campaign_url = app_store_url('firefox', 'custom-001') %}
|
||||
|
||||
{% block string_data %}
|
||||
data-win-custom-id="{{ win_custom_download_id }}"
|
||||
data-mac-custom-id="{{ mac_custom_download_id }}"
|
||||
{% endblock %}
|
||||
|
||||
{% block primary_cta %}
|
||||
{{ download_firefox(dom_id='download-primary', force_direct=True, download_location='primary cta') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block features_cta %}
|
||||
{{ download_firefox(dom_id='download-features', force_direct=True, download_location='features cta') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block discover_cta %}
|
||||
{{ download_firefox(dom_id='download-discover', force_direct=True, download_location='discover cta') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block mobile_primary_cta %}
|
||||
<div class="show-android">
|
||||
{{ google_play_button(href=android_campaign_url) }}
|
||||
</div>
|
||||
<div class="show-ios">
|
||||
{{ apple_app_store_button(href=ios_campaign_url) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block mobile_secondary_cta %}
|
||||
<ul class="mobile-download-buttons">
|
||||
<li class="android">
|
||||
{{ google_play_button(href=android_campaign_url) }}
|
||||
</li>
|
||||
<li class="ios">
|
||||
{{ apple_app_store_button(href=ios_campaign_url) }}
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
|
||||
{% block js %}
|
||||
{{ super() }}
|
||||
{{ js_bundle('firefox_partner_build_download') }}
|
||||
{% endblock %}
|
|
@ -89,7 +89,9 @@
|
|||
<h2 class="mzp-has-zap-7">{{ ftl('firefox-desktop-download-get-the-browser') }}</h2>
|
||||
<p>{{ ftl('firefox-desktop-download-no-shady') }}</p>
|
||||
<div class="c-intro-download">
|
||||
{{ download_firefox_thanks(locale_in_transition=True, download_location='primary cta') }}
|
||||
{% block primary_cta %}
|
||||
{{ download_firefox_thanks(locale_in_transition=True, download_location='primary cta') }}
|
||||
{% endblock %}
|
||||
|
||||
<div class="c-intro-download-alt"><a href="{{ url('firefox.all') }}">{{ ftl('firefox-desktop-download-download-options') }}</a></div>
|
||||
|
||||
|
@ -279,14 +281,16 @@
|
|||
<h3 class="mzp-u-title-sm">{{ ftl('firefox-desktop-download-all-your-devices') }}</h3>
|
||||
<p>{{ ftl('firefox-desktop-download-take-your-privacy') }}</p>
|
||||
<div class="mobile-download-buttons-wrapper">
|
||||
<ul class="mobile-download-buttons">
|
||||
<li class="android">
|
||||
{{ google_play_button() }}
|
||||
</li>
|
||||
<li class="ios">
|
||||
{{ apple_app_store_button(href=ios_url) }}
|
||||
</li>
|
||||
</ul>
|
||||
{% block mobile_secondary_cta %}
|
||||
<ul class="mobile-download-buttons">
|
||||
<li class="android">
|
||||
{{ google_play_button() }}
|
||||
</li>
|
||||
<li class="ios">
|
||||
{{ apple_app_store_button(href=ios_url) }}
|
||||
</li>
|
||||
</ul>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="c-block-media l-v-end l-h-end l-media-constrain-on-sm">
|
||||
|
@ -384,8 +388,9 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ download_firefox_thanks(dom_id='download-features', locale_in_transition=True, download_location='features cta') }}
|
||||
|
||||
{% block features_cta %}
|
||||
{{ download_firefox_thanks(dom_id='download-features', locale_in_transition=True, download_location='features cta') }}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
@ -545,7 +550,9 @@
|
|||
<p>{{ ftl('firefox-desktop-download-from-watching-a') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{{ download_firefox_thanks(dom_id='download-discover', locale_in_transition=True, download_location='discover cta') }}
|
||||
{% block discover_cta %}
|
||||
{{ download_firefox_thanks(dom_id='download-discover', locale_in_transition=True, download_location='discover cta') }}
|
||||
{% endblock %}
|
||||
</section>
|
||||
|
||||
<section class="c-support">
|
||||
|
@ -563,12 +570,14 @@
|
|||
|
||||
<p>{{ ftl('firefox-desktop-download-download-the-mobile') }}</p>
|
||||
|
||||
<div class="show-android">
|
||||
{{ google_play_button() }}
|
||||
</div>
|
||||
<div class="show-ios">
|
||||
{{ apple_app_store_button(href=ios_url) }}
|
||||
</div>
|
||||
{% block mobile_primary_cta %}
|
||||
<div class="show-android">
|
||||
{{ google_play_button() }}
|
||||
</div>
|
||||
<div class="show-ios">
|
||||
{{ apple_app_store_button(href=ios_url) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -270,6 +270,8 @@ urlpatterns = (
|
|||
"firefox/firefox-20th/index.html",
|
||||
active_locales=["de", "fr", "en-US", "en-CA", "en-GB"],
|
||||
),
|
||||
# Issue 15841 - UK influencer campaign
|
||||
page("firefox/landing/tech/", "firefox/landing/tech.html", ftl_files="firefox/new/desktop", active_locales="en-GB"),
|
||||
)
|
||||
|
||||
# Contentful
|
||||
|
|
|
@ -504,6 +504,7 @@ NOINDEX_URLS = [
|
|||
r"^firefox/this-browser-comes-highly-recommended/",
|
||||
r"^firefox/nightly/notes/feed/$",
|
||||
r"^firefox.*/all/$",
|
||||
r"^firefox/landing/",
|
||||
r"^.+/(firstrun|whatsnew)/$",
|
||||
r"^m/",
|
||||
r"^newsletter/(confirm|existing|hacks\.mozilla\.org|recovery|updated|fxa-error)/",
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
const MozAllowList = [
|
||||
'/firefox/built-for-you/',
|
||||
'/firefox/challenge-the-default/',
|
||||
'/firefox/landing/*',
|
||||
'/newsletter/firefox/',
|
||||
'/products/vpn/*'
|
||||
];
|
||||
|
|
|
@ -112,7 +112,9 @@ TrackProductDownload.getEventFromUrl = (downloadURL) => {
|
|||
const productParam = params.product;
|
||||
const productSplit = productParam.split('-');
|
||||
// product is first word of product param
|
||||
const product = productSplit[0];
|
||||
let product = productSplit[0];
|
||||
// partner builds are labelled as ?product=partner-firefox so class these as regular 'firefox' download events.
|
||||
product = product === 'partner' ? 'firefox' : product;
|
||||
let platform = params.os;
|
||||
// change platform to macos if it's osx
|
||||
platform = platform === 'osx' ? 'macos' : platform;
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
import PartnerBuildDownload from './partner-build-download.es6';
|
||||
|
||||
PartnerBuildDownload.init();
|
|
@ -0,0 +1,56 @@
|
|||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
const PartnerBuildDownload = {};
|
||||
|
||||
let winDownloadID;
|
||||
let macDownloadID;
|
||||
|
||||
PartnerBuildDownload.createCustomDownloadURL = (link, id) => {
|
||||
const url = new URL(link.href);
|
||||
|
||||
// update product to custom build ID.
|
||||
url.searchParams.set('product', id);
|
||||
|
||||
link.href = url;
|
||||
};
|
||||
|
||||
PartnerBuildDownload.replaceWithCustomDownloadLinks = () => {
|
||||
const downloadLinksWin = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="win"]'
|
||||
)
|
||||
);
|
||||
const downloadLinksMac = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="osx"]'
|
||||
)
|
||||
);
|
||||
|
||||
downloadLinksWin.forEach((link) =>
|
||||
PartnerBuildDownload.createCustomDownloadURL(link, winDownloadID)
|
||||
);
|
||||
downloadLinksMac.forEach((link) =>
|
||||
PartnerBuildDownload.createCustomDownloadURL(link, macDownloadID)
|
||||
);
|
||||
};
|
||||
|
||||
PartnerBuildDownload.init = () => {
|
||||
const strings = document.getElementById('strings');
|
||||
winDownloadID = strings.getAttribute('data-win-custom-id');
|
||||
macDownloadID = strings.getAttribute('data-mac-custom-id');
|
||||
|
||||
if (
|
||||
typeof window.URL === 'function' &&
|
||||
typeof Array.from === 'function' &&
|
||||
winDownloadID &&
|
||||
macDownloadID
|
||||
) {
|
||||
PartnerBuildDownload.replaceWithCustomDownloadLinks();
|
||||
}
|
||||
};
|
||||
|
||||
export default PartnerBuildDownload;
|
|
@ -1788,6 +1788,12 @@
|
|||
"js/base/banners/fundraiser-experiment.es6.js"
|
||||
],
|
||||
"name": "fundraising-banner-experiment"
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"js/firefox/landing/partner-build-download-init.es6.js"
|
||||
],
|
||||
"name": "firefox_partner_build_download"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1328,5 +1328,7 @@ URLS = flatten(
|
|||
),
|
||||
# Issue 15386
|
||||
url_test("/products/vpn/resource-center/no-Logging-vpn-from-mozilla/", "/products/vpn/resource-center/no-logging-vpn-from-mozilla/"),
|
||||
# Issue 15841
|
||||
url_test("/firefox/tech/", "/firefox/landing/tech/"),
|
||||
)
|
||||
)
|
||||
|
|
|
@ -111,6 +111,12 @@ describe('TrackProductDownload.getEventFromUrl', function () {
|
|||
);
|
||||
expect(testEvent['product']).toBe('firefox');
|
||||
});
|
||||
it('should identify product for Firefox Desktop partner builds', function () {
|
||||
const testEvent = TrackProductDownload.getEventFromUrl(
|
||||
'https://download.mozilla.org/?product=partner-firefox-release-smi-smi-001-latest&os=osx&lang=en-GB'
|
||||
);
|
||||
expect(testEvent['product']).toBe('firefox');
|
||||
});
|
||||
it('should identify product for Firefox in the App Store', function () {
|
||||
const testEvent = TrackProductDownload.getEventFromUrl(
|
||||
'https://itunes.apple.com/app/firefox-private-safe-browser/id989804926'
|
||||
|
|
|
@ -0,0 +1,265 @@
|
|||
/*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
/* For reference read the Jasmine and Sinon docs
|
||||
* Jasmine docs: https://jasmine.github.io/
|
||||
* Sinon docs: http://sinonjs.org/docs/
|
||||
*/
|
||||
|
||||
import PartnerBuildDownload from '../../../../../media/js/firefox/landing/partner-build-download.es6';
|
||||
|
||||
describe('partner-build-download.es6.js', function () {
|
||||
describe('init()', function () {
|
||||
beforeEach(function () {
|
||||
const strings = `<div id="strings" data-win-custom-id="partner-firefox-release-smi-smi-001-stub" data-mac-custom-id="partner-firefox-release-smi-smi-001-latest"></div>`;
|
||||
|
||||
const button1 = `<div id="download-primary" class="download-button mzp-c-button-download-container">
|
||||
<ul class="download-list">
|
||||
<li class="os_win64">
|
||||
<a class="download-link button" id="download-primary-win64" href="https://download.mozilla.org/?product=firefox-stub&os=win64&lang=en-GB" data-download-version="win64">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win64-msi">
|
||||
<a class="download-link button" id="download-primary-win64-msi" href="https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-GB" data-download-version="win64-msi">
|
||||
>Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win64-aarch64">
|
||||
<a class="download-link button" id="download-primary-win64-aarch64" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=win64-aarch64&lang=en-GB" data-download-version="win64-aarch64">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win">
|
||||
<a class="download-link button" id="download-primary-win" href="https://download.mozilla.org/?product=firefox-stub&os=win&lang=en-GB" data-download-version="win">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win-msi">
|
||||
<a class="download-link button" id="download-primary-win-msi" href="https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win&lang=en-GB" data-download-version="win-msi">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_osx">
|
||||
<a class="download-link button" id="download-primary-osx" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=osx&lang=en-GB" data-download-version="osx">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_linux64">
|
||||
<a class="download-link button" id="download-primary-linux64" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-GB" data-download-version="linux64">
|
||||
Download for Linux 64-bit
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_linux">
|
||||
<a class="download-link button" id="download-primary-linux" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux&lang=en-GB" data-download-version="linux">
|
||||
Download for Linux 32-bit
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_android">
|
||||
<a class="download-link button" id="download-primary-android" href="https://play.google.com/store/apps/details?id=org.mozilla.firefox&referrer=utm_source%3Dmozilla%26utm_medium%3DReferral%26utm_campaign%3Dmozilla-org" data-download-version="android">
|
||||
Firefox for Android
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_ios">
|
||||
<a class="download-link button" id="download-primary-ios" href="https://apps.apple.com/us/app/apple-store/id989804926" data-download-version="ios">
|
||||
Firefox for iOS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>`;
|
||||
|
||||
const button2 = `<div id="download-secondary" class="download-button mzp-c-button-download-container">
|
||||
<ul class="download-list">
|
||||
<li class="os_win64">
|
||||
<a class="download-link button" id="download-primary-win64" href="https://download.mozilla.org/?product=firefox-stub&os=win64&lang=en-GB" data-download-version="win64">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win64-msi">
|
||||
<a class="download-link button" id="download-primary-win64-msi" href="https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win64&lang=en-GB" data-download-version="win64-msi">
|
||||
>Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win64-aarch64">
|
||||
<a class="download-link button" id="download-primary-win64-aarch64" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=win64-aarch64&lang=en-GB" data-download-version="win64-aarch64">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win">
|
||||
<a class="download-link button" id="download-primary-win" href="https://download.mozilla.org/?product=firefox-stub&os=win&lang=en-GB" data-download-version="win">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_win-msi">
|
||||
<a class="download-link button" id="download-primary-win-msi" href="https://download.mozilla.org/?product=firefox-msi-latest-ssl&os=win&lang=en-GB" data-download-version="win-msi">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_osx">
|
||||
<a class="download-link button" id="download-primary-osx" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=osx&lang=en-GB" data-download-version="osx">
|
||||
Download Firefox
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_linux64">
|
||||
<a class="download-link button" id="download-primary-linux64" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-GB" data-download-version="linux64">
|
||||
Download for Linux 64-bit
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_linux">
|
||||
<a class="download-link button" id="download-primary-linux" href="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux&lang=en-GB" data-download-version="linux">
|
||||
Download for Linux 32-bit
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_android">
|
||||
<a class="download-link button" id="download-primary-android" href="https://play.google.com/store/apps/details?id=org.mozilla.firefox&referrer=utm_source%3Dmozilla%26utm_medium%3DReferral%26utm_campaign%3Dmozilla-org" data-download-version="android">
|
||||
Firefox for Android
|
||||
</a>
|
||||
</li>
|
||||
<li class="os_ios">
|
||||
<a class="download-link button" id="download-primary-ios" href="https://apps.apple.com/us/app/apple-store/id989804926" data-download-version="ios">
|
||||
Firefox for iOS
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>`;
|
||||
|
||||
document.body.insertAdjacentHTML('beforeend', strings);
|
||||
document.body.insertAdjacentHTML('beforeend', button1);
|
||||
document.body.insertAdjacentHTML('beforeend', button2);
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
const strings = document.getElementById('strings');
|
||||
strings.parentNode.removeChild(strings);
|
||||
|
||||
const button1 = document.getElementById('download-primary');
|
||||
button1.parentNode.removeChild(button1);
|
||||
|
||||
const button2 = document.getElementById('download-secondary');
|
||||
button2.parentNode.removeChild(button2);
|
||||
});
|
||||
|
||||
it('should update Windows and macOS download URLs with a custom build link', function () {
|
||||
PartnerBuildDownload.init();
|
||||
|
||||
const downloadLinksWin = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="win"]'
|
||||
)
|
||||
);
|
||||
const downloadLinksMac = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="osx"]'
|
||||
)
|
||||
);
|
||||
|
||||
downloadLinksWin.forEach((link) =>
|
||||
expect(link.href).toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001-stub'
|
||||
)
|
||||
);
|
||||
downloadLinksMac.forEach((link) =>
|
||||
expect(link.href).toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001-latest'
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it('should not update Windows URLs that are not visible on landing page', function () {
|
||||
PartnerBuildDownload.init();
|
||||
|
||||
const downloadLinksWin64 = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="win64"]'
|
||||
)
|
||||
);
|
||||
const downloadLinksWinMsi = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="win64-msi"]'
|
||||
)
|
||||
);
|
||||
const downloadLinksWinAarch64 = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="win64-aarch64"]'
|
||||
)
|
||||
);
|
||||
|
||||
downloadLinksWin64.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001-stub'
|
||||
)
|
||||
);
|
||||
downloadLinksWinMsi.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001'
|
||||
)
|
||||
);
|
||||
downloadLinksWinAarch64.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001'
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it('should not update Linux download URLs with a custom build link', function () {
|
||||
PartnerBuildDownload.init();
|
||||
|
||||
const downloadLinksLinux = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="linux"]'
|
||||
)
|
||||
);
|
||||
const downloadLinksLinux64 = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="linux64"]'
|
||||
)
|
||||
);
|
||||
|
||||
downloadLinksLinux.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001'
|
||||
)
|
||||
);
|
||||
downloadLinksLinux64.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001'
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it('should not update iOS download URLs with a custom build link', function () {
|
||||
PartnerBuildDownload.init();
|
||||
|
||||
const downloadLinksIOS = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="ios"]'
|
||||
)
|
||||
);
|
||||
|
||||
downloadLinksIOS.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001'
|
||||
)
|
||||
);
|
||||
});
|
||||
|
||||
it('should not update Android download URLs with a custom build link', function () {
|
||||
PartnerBuildDownload.init();
|
||||
|
||||
const downloadLinksAndroid = Array.from(
|
||||
document.querySelectorAll(
|
||||
'.download-button .download-list .download-link[data-download-version="android"]'
|
||||
)
|
||||
);
|
||||
|
||||
downloadLinksAndroid.forEach((link) =>
|
||||
expect(link.href).not.toContain(
|
||||
'?product=partner-firefox-release-smi-smi-001'
|
||||
)
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
Загрузка…
Ссылка в новой задаче