Skip to content

Commit 029849f

Browse files
authored
Merge pull request #687 from mozilla/tracy/fix-lang-pack-pref-test
tracy/ fix lang pack test on Windows
2 parents 107d57f + 21ca687 commit 029849f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/preferences/test_lang_pack_changed_from_about_prefs.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def add_to_prefs_list():
2828
return [("services.sync.prefs.sync-seen.intl.accept_languages", True)]
2929

3030

31-
@pytest.mark.skipif(system().lower().startswith("win"), reason="Bug 1978595")
3231
def test_lang_pack_changed_from_about_prefs(driver: Firefox):
3332
"""
3433
C1771617 - The language can be changed in about:preferences.
@@ -69,6 +68,12 @@ def test_lang_pack_changed_from_about_prefs(driver: Firefox):
6968
screen_cap = GenericPage(driver, url=SCREEN_CAP_URL)
7069
screen_cap.open()
7170
screen_cap.find_element("id", "start").click()
71+
72+
# In automation, Windows is putting the popup behind the browser window.
73+
# A click in the awesomebar magically makes the popup visible.
74+
if system() == "Windows":
75+
nav.click_in_awesome_bar()
76+
7277
nav.element_visible("popup-notification")
7378
nav.expect_element_attribute_contains(
7479
"popup-notification", "label", SCREEN_CAP_LABEL_FRONT_PT

0 commit comments

Comments
 (0)