Skip to content

Commit 76037bc

Browse files
committed
Add a wait condition
1 parent 57383ee commit 76037bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/downloads/test_add_mime_type_doc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def test_case():
1414

1515
# Constants
1616
DOC_LINK = "https://sapphire-hendrika-5.tiiny.site/"
17+
# WIN_GHA = environ.get("GITHUB_ACTIONS") == "true" and sys.platform.startswith("win")
1718

1819

1920
@pytest.fixture()
@@ -32,6 +33,7 @@ def expected_app_name(sys_platform: str, opt_ci: bool) -> str:
3233

3334

3435
@pytest.mark.noxvfb
36+
# @pytest.mark.skipif(WIN_GHA, reason="Test unstable in Windows Github Actions")
3537
def test_mime_type_doc(driver: Firefox, sys_platform: str, opt_ci: bool, delete_files):
3638
"""
3739
C1756748 - Verify that downloading a .doc file adds a new MIME type entry
@@ -51,6 +53,8 @@ def test_mime_type_doc(driver: Firefox, sys_platform: str, opt_ci: bool, delete_
5153

5254
# Verify the MIME type entry exists and default app matches expectation
5355
about_prefs.open()
56+
about_prefs.element_exists("mime-type-item", labels=["application/msword"])
57+
5458
app_name = about_prefs.get_app_name_for_mime_type("application/msword")
5559
assert app_name == expected_app_name(sys_platform, opt_ci)
5660

0 commit comments

Comments
 (0)