Skip to content

Commit 110a235

Browse files
committed
initial commit
1 parent 76974d1 commit 110a235

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

modules/data/about_prefs.components.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,24 @@
153153
"groups": []
154154
},
155155

156+
"language-set-alternatives-button": {
157+
"selectorData": "manageBrowserLanguagesButton",
158+
"strategy": "id",
159+
"groups": []
160+
},
161+
162+
"language-set-alternatives-popup-select-lanuages": {
163+
"selectorData": "availableLocales",
164+
"strategy": "id",
165+
"groups": []
166+
},
167+
168+
"language-set-alternatives-popup-select-lanuages-search-more": {
169+
"selectorData": "primaryBrowserLocaleSearch",
170+
"strategy": "id",
171+
"groups": []
172+
},
173+
156174
"home-new-tabs-dropdown": {
157175
"selectorData": "newTabMode",
158176
"strategy": "id",

tests/language_packs/conftest.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
4+
@pytest.fixture()
5+
def suite_id():
6+
return ("S22801", "Language Packs")
7+
8+
9+
@pytest.fixture()
10+
def set_prefs():
11+
"""Set prefs"""
12+
return [
13+
("intl.multilingual.downloadEnabled", True),
14+
("intl.multilingual.enabled", True),
15+
("intl.multilingual.liveReload", True),
16+
]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from time import sleep
2+
3+
from selenium.webdriver import Firefox
4+
5+
from modules.page_object import AboutPrefs
6+
from modules.util import BrowserActions
7+
8+
def test_language_pack_install_about_preferences(driver: Firefox):
9+
"""
10+
C1549409: language packs can be installed from about:preferences and firefox is correctly localized
11+
"""
12+
about_prefs = AboutPrefs(driver, category="general").open()
13+
ba = BrowserActions(driver)
14+
about_prefs.get_element("language-set-alternatives-button").click()
15+
16+
iframe = about_prefs.get_element("browser-popup")
17+
ba.switch_to_iframe_context(iframe)
18+
about_prefs.get_element("language-set-alternatives-popup-select-lanuages").click()
19+
about_prefs.element_clickable("language-set-alternatives-popup-select-lanuages-search-more")
20+
21+
with driver.context(driver.CONTEXT_CHROME):
22+
select_more = about_prefs.get_element("language-set-alternatives-popup-select-lanuages-search-more")
23+
select_more.click()
24+
sleep(10)

0 commit comments

Comments
 (0)