Hani/ Fix test mixed content download https - #1567
Conversation
|
The changes look good overall. Two minor observations:
Overall the fix is correct and the approach is sound. |
|
The fix looks correct. The old code had a problematic double-wait pattern: The new approach — explicitly clicking the downloads button to open the panel before checking for One minor thing to verify: if Firefox auto-opens the downloads panel when the download starts (some versions do this), a subsequent |
|
Good fix overall. The old pattern One minor note: |
|
Overall this is a good fix — opening the download panel before checking for One minor issue inline, but nothing blocking. |
|
The core fix is correct — opening the downloads panel before checking for # Before (broken)
web_page.wait.until(lambda _: nav.element_visible("download-target-element"))
# After (same issue, different element)
web_page.wait.until(lambda _: nav.element_visible("downloads-button"))
Since nav.element_visible("downloads-button")
nav.click_download_button()
nav.element_visible("download-target-element")If you want to use |
|
The core fix (opening the downloads panel before checking for Two issues worth addressing before marking this as stable:
|
ReviewThe core fix is correct — the old One concern worth checking before landing: Similar tests in this suite (e.g., This test instead manually calls Recommend either:
|
ReviewThe fix looks correct. Setting One concern: The test downloads from an external third-party URL ( Otherwise the changes are clean and the simplification of the wait logic is correct. |
|
The fix is correct and consistent with the suite pattern. Using Two minor issues inline. |
|
The fix is correct and consistent with the suite pattern — using One unused constant: |
|
Good fix overall. The root cause is correctly addressed by adding One note on the wait simplification: the original |
|
Review summary The prefs fixture approach is the right fix. Two issues worth addressing: Bug: delete_files_regex_string won't clean up the downloaded file The existing regex Minor: LibreOffice may auto-open the .odt on Linux The Everything else (prefs fixture, element_visible call, manifest update, ruff reformats) looks good. |
|
Two concrete issues to fix: 1. Line 15 currently returns return r"file-sample_100kB.*\.odt"2. Missing The test downloads a def test_mixed_content_download_via_https(driver: Firefox, delete_files, close_external_apps): |
|
The core fix is correct and clean. A few observations: What's fixed: Setting Lambda changes in Pre-existing issue (out of scope, but worth noting): |
Relevant Links
Bugzilla: 2064075
TestRail: 1756722
Description of Code / Doc Changes
Process Changes Required
Mark the relevant boxes, delete irrelevant lines.
uv sync)./devsetup.sh)Screenshots or Explanations
N/A
Comments or Future Work
N/A
Workflow Checklist
Thank you!