-
Notifications
You must be signed in to change notification settings - Fork 23
WT-841 Show correct Windows download link #1152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bluewave41
wants to merge
8
commits into
main
Choose a base branch
from
WT-841-windows-arch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
36b9526
Show proper Windows download link based on architecture
bluewave41 4156204
Conditionally send force_arch to template
bluewave41 3d9bcb0
Fix broken URL tests
bluewave41 a8f0457
Adds tests for new forced architecture
bluewave41 2cb9ca6
Removt conditional force_arch check
bluewave41 7c6c5e3
Remove nightly exception code
bluewave41 cdbbf1a
Ruff format
bluewave41 4290c24
Remove unhelpful test
bluewave41 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -160,5 +160,68 @@ test.describe( | |
| await expect(downloadButtonBeta).not.toBeVisible(); | ||
| await expect(downloadButtonDeveloper).not.toBeVisible(); | ||
| }); | ||
|
|
||
| test('Download Firefox (Windows) forced win architecture', async ({ | ||
| page, | ||
| browserName | ||
| }) => { | ||
| const downloadButtonRelease = page.getByTestId( | ||
| 'download-button-desktop-release-win' | ||
| ); | ||
|
|
||
| test.skip( | ||
| browserName === 'webkit', | ||
| 'Safari not available on Windows' | ||
| ); | ||
|
|
||
| await openPage( | ||
| url + '?channel=release&installer_arch=1', | ||
| page, | ||
| browserName | ||
| ); | ||
| await expect(downloadButtonRelease).toBeVisible(); | ||
| }); | ||
|
|
||
| test('Download Firefox (Windows) forced win64 architecture', async ({ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. non-blocking is it also worth checking the unexpected win downloads are not visible? |
||
| page, | ||
| browserName | ||
| }) => { | ||
| const downloadButtonRelease = page.getByTestId( | ||
| 'download-button-desktop-release-win64' | ||
| ); | ||
|
|
||
| test.skip( | ||
| browserName === 'webkit', | ||
| 'Safari not available on Windows' | ||
| ); | ||
|
|
||
| await openPage( | ||
| url + '?channel=release&installer_arch=2', | ||
| page, | ||
| browserName | ||
| ); | ||
| await expect(downloadButtonRelease).toBeVisible(); | ||
| }); | ||
|
|
||
| test('Download Firefox (Windows) forced win64-aarch64 architecture', async ({ | ||
| page, | ||
| browserName | ||
| }) => { | ||
| const downloadButtonRelease = page.getByTestId( | ||
| 'download-button-desktop-release-win64-aarch64' | ||
| ); | ||
|
|
||
| test.skip( | ||
| browserName === 'webkit', | ||
| 'Safari not available on Windows' | ||
| ); | ||
|
|
||
| await openPage( | ||
| url + '?channel=release&installer_arch=3', | ||
| page, | ||
| browserName | ||
| ); | ||
| await expect(downloadButtonRelease).toBeVisible(); | ||
| }); | ||
| } | ||
| ); | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevejalim do you know if this special casing is still necessary (related tests here: https://github.com/mozmeao/springfield/pull/1152/changes#diff-787fdc6db4abb92a972f332cdf45bf50fbe8d61618b74f507a937285e8ff6139L173)
More detail in comments: #1152 (comment)
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keeping this behavior makes it confusing and would make the CSS look worse
Release
installer_arch=1? show
.wininstaller_arch=2? show
.win64installer_arch=3? show
.win64-aarch64Nightly
installer_arch=1? show
.wininstaller_arch=2? show nothing. win64 sets the platform to win but arch 2 shows win64 which doesn't exist
installer_arch=3? show
.win64-aarch64So now we need to specifically CSS nightly and show
.winfor forced arch 1 and 2. This also means you can't get a 64 bit installer for nightly from this page despite one existing. The stub installers are universal but these full installers are differenthttps://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-151.0a1.en-US.win32.installer.exe
https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-151.0a1.en-US.win64.installer.exe