Skip to content

Commit bcd54dd

Browse files
committed
Use a smaller download
1 parent 42dcacb commit bcd54dd

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/downloads/test_mixed_content_download_via_https.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ def delete_files_regex_string():
2121
return r"\bdownload\b"
2222

2323

24-
MIXED_CONTENT_DOWNLOAD_URL = "https://file-examples.com/wp-content/storage/2018/04/file_example_AVI_480_750kB.avi"
24+
MIXED_CONTENT_DOWNLOAD_URL = (
25+
"https://file-examples.com/wp-content/storage/2017/10/file-sample_100kB.odt"
26+
)
2527
MAX_CHECKS = 30
2628

2729

28-
@pytest.mark.unstable(
29-
reason="Flaky in CI, see bug https://bugzilla.mozilla.org/show_bug.cgi?id=1976520"
30-
)
3130
def test_mixed_content_download_via_https(driver: Firefox, delete_files):
3231
"""
3332
C1756722: Verify that the user can download mixed content via HTTPS
@@ -44,16 +43,14 @@ def test_mixed_content_download_via_https(driver: Firefox, delete_files):
4443
download_name = WebDriverWait(driver, 10).until(
4544
EC.presence_of_element_located((By.CLASS_NAME, "downloadTarget"))
4645
)
47-
#
48-
# Test failing here:
49-
#
46+
5047
download_status = WebDriverWait(driver, 10).until(
5148
EC.presence_of_element_located((By.CLASS_NAME, "downloadProgress"))
5249
)
5350

5451
# Verify that the desired download target element is present directly, no extra steps needed.
5552
download_value = download_name.get_attribute("value")
56-
assert re.match(r"file_example_AVI_480_750kB(\(\d+\)).avi$", download_value), (
53+
assert re.match(r"file-sample_100kB(\(\d+\)).odt$", download_value), (
5754
f"The download name is incorrect: {download_value}"
5855
)
5956

0 commit comments

Comments
 (0)