Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ describe('Connect another device Promo', () => {
await screen.findByText('Find Firefox in the Google Play and App Store.');
expect(screen.getByTestId('play-store-link')).toHaveAttribute(
'href',
'https://app.adjust.com/2uo1qc?redirect=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dorg.mozilla.firefox'
'https://mzl.la/setting-appdownload'
);
expect(screen.getByTestId('app-store-link')).toHaveAttribute(
'href',
'https://app.adjust.com/2uo1qc?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Ffirefox-private-safe-browser%2Fid989804926'
'https://mzl.la/setting-appdownload'
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { SettingsContext } from '../../../models/contexts/SettingsContext';
import GleanMetrics from '../../../lib/glean';
import { FtlMsg } from 'fxa-react/lib/utils';

// Bitly smart link. It detects the platform and redirects to the correct store.
const APP_DOWNLOAD_LINK = 'https://mzl.la/setting-appdownload';

export function ConnectAnotherDevicePromo() {
const { navigatorLanguages } = useContext(SettingsContext);
const GooglePlayBadge = getStoreImageByLanguages(
Expand Down Expand Up @@ -39,15 +42,15 @@ export function ConnectAnotherDevicePromo() {
<LinkExternal
className="self-center rounded focus-visible-default outline-offset-2"
data-testid="play-store-link"
href="https://app.adjust.com/2uo1qc?redirect=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dorg.mozilla.firefox"
href={APP_DOWNLOAD_LINK}
onClick={() => GleanMetrics.accountPref.googlePlaySubmit()}
>
{GooglePlayBadge}
</LinkExternal>
<LinkExternal
className="self-center m-2 rounded focus-visible-default outline-offset-2"
data-testid="app-store-link"
href="https://app.adjust.com/2uo1qc?redirect=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Ffirefox-private-safe-browser%2Fid989804926"
href={APP_DOWNLOAD_LINK}
onClick={() => GleanMetrics.accountPref.appleSubmit()}
>
{AppStoreBadge}
Expand Down
Loading