Skip to content

Commit b91b2cd

Browse files
committed
Swap in new test site
1 parent 92e994f commit b91b2cd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/downloads/test_mixed_content_download_via_https.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def delete_files_regex_string():
1919
return r"\bdownload\b"
2020

2121

22-
MIXED_CONTENT_DOWNLOAD_URL = "https://b-mcb-download.glitch.me/"
22+
MIXED_CONTENT_DOWNLOAD_URL = "https://file-examples.com/wp-content/storage/2018/04/file_example_AVI_480_750kB.avi"
2323

2424

2525
def test_mixed_content_download_via_https(driver: Firefox, delete_files):
@@ -29,14 +29,10 @@ def test_mixed_content_download_via_https(driver: Firefox, delete_files):
2929

3030
web_page = GenericPage(driver, url=MIXED_CONTENT_DOWNLOAD_URL)
3131

32-
# Wait up to 30 seconds for test website to wake up and load the content
32+
# Wait up to 30 seconds for test website to wake up and download the content
3333
web_page.open()
3434
with driver.context(driver.CONTEXT_CHROME):
35-
WebDriverWait(driver, 30).until(EC.title_contains("Hello!"))
36-
37-
WebDriverWait(driver, 5).until(
38-
EC.presence_of_element_located((By.XPATH, "//button[@onclick='runtestSec()']"))
39-
).click()
35+
WebDriverWait(driver, 30).until(EC.title_contains("File Examples"))
4036

4137
with driver.context(driver.CONTEXT_CHROME):
4238
download_name = WebDriverWait(driver, 10).until(
@@ -49,7 +45,7 @@ def test_mixed_content_download_via_https(driver: Firefox, delete_files):
4945

5046
# Verify that the desired download target element is present directly, no extra steps needed.
5147
download_value = download_name.get_attribute("value")
52-
assert re.match(r"download(\(\d+\))?$", download_value), (
48+
assert re.match(r"file_example_AVI_480_750kB(\(\d+\)).avi$", download_value), (
5349
f"The download name is incorrect: {download_value}"
5450
)
5551

0 commit comments

Comments
 (0)