Skip to content

Commit 48eab23

Browse files
authored
Merge branch 'main' into anca/cm-us-apple
2 parents 872ba53 + badeb90 commit 48eab23

File tree

10 files changed

+85
-13
lines changed

10 files changed

+85
-13
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"url": "http://127.0.0.1:8080/yellowkorner_ad.html",
3+
"field_mapping": {
4+
"given_name": "5960cb79-1aab-4074-ae3c-764685328505",
5+
"family_name": "030cb327-9c72-4617-8a63-aa39b886ba6c",
6+
"street_address": "834b799a-5d7b-41f2-9ba0-3fe6796e34b2",
7+
"address_level_2": "7f25e3a1-4160-4d19-b2c3-9b449d7aba9d",
8+
"country": "d3b5f197-a1a1-49e3-ad6e-a7019131fd19",
9+
"postal_code": "26148b36-0fc4-4c51-aef1-4636168b65a5",
10+
"telephone": "e5aea163-2e59-4db5-a78f-f3a799ea07ed",
11+
"email": "df9be921-33a5-446c-afc3-8526f6205031"
12+
},
13+
14+
"form_field": "*[data-moz-autofill-inspect-id='{given_name}']",
15+
"fields": [
16+
"5960cb79-1aab-4074-ae3c-764685328505",
17+
"030cb327-9c72-4617-8a63-aa39b886ba6c",
18+
"834b799a-5d7b-41f2-9ba0-3fe6796e34b2",
19+
"7f25e3a1-4160-4d19-b2c3-9b449d7aba9d",
20+
"d3b5f197-a1a1-49e3-ad6e-a7019131fd19",
21+
"26148b36-0fc4-4c51-aef1-4636168b65a5",
22+
"e5aea163-2e59-4db5-a78f-f3a799ea07ed",
23+
"df9be921-33a5-446c-afc3-8526f6205031"
24+
]
25+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"url": "http://127.0.0.1:8080/yellowkorner_cc.html",
3+
"field_mapping": {
4+
"card_name": "78acaa43-767a-4b0c-9f33-843a69bbb513",
5+
"card_number": "5e681607-501f-4b81-a250-5de8fe10981e",
6+
"expiration_date": "bf493d87-1b04-4068-bd84-da672a2eb33a",
7+
"cvv": "c77b687d-b39c-4046-88d7-a5340f9ad980"
8+
},
9+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
10+
"skip": "True",
11+
"fields": [
12+
"78acaa43-767a-4b0c-9f33-843a69bbb513",
13+
"5e681607-501f-4b81-a250-5de8fe10981e",
14+
"bf493d87-1b04-4068-bd84-da672a2eb33a",
15+
"c77b687d-b39c-4046-88d7-a5340f9ad980"
16+
]
17+
}

l10n_CM/region/FR.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"sites": [
44
"amazon",
55
"demo",
6-
"artsper"
6+
"artsper",
7+
"yellowkorner"
78
],
89
"tests": [
910
]

l10n_CM/run_l10n.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,17 @@
3535
"aldoshoes",
3636
"canadatire",
3737
"apple",
38-
"wish",
3938
"artsper",
39+
"yellowkorner"
40+
"wish"
4041
}
4142

4243
loaded_valid_sites = valid_l10n_mappings().keys()
4344
valid_sites = valid_sites.union(set(loaded_valid_sites))
4445

4546
live_sites = []
4647

48+
4749
LOCALHOST = "127.0.0.1"
4850
PORT = 8080
4951
os.environ["TEST_EXIT_CODE"] = "0"

l10n_CM/sites/yellowkorner/FR/yellowkorner_ad.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

l10n_CM/sites/yellowkorner/FR/yellowkorner_cc.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

modules/testrail_integration.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,12 @@ def organize_l10n_entries(
392392
if not test_results[category].get(run_id):
393393
test_results[category][run_id] = []
394394
test_results[category][run_id].append(
395-
{"suite_id": suite_id, "site": site, "test_case": test_case, "duration": f"{duration}s"}
395+
{
396+
"suite_id": suite_id,
397+
"site": site,
398+
"test_case": test_case,
399+
"duration": f"{duration}s",
400+
}
396401
)
397402

398403
return test_results

tests/password_manager/test_auto_saved_generated_password_context_menu.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from time import sleep
2+
13
import pytest
24
from selenium.webdriver import Firefox
35

@@ -23,6 +25,7 @@ def test_auto_saved_generated_password_context_menu(driver: Firefox):
2325
"""
2426
C2248176 - Securely Generated Password is auto-saved when generated from password field context menu
2527
"""
28+
2629
# Instantiate objects
2730
context_menu = ContextMenu(driver)
2831
tabs = TabBar(driver)
@@ -37,14 +40,25 @@ def test_auto_saved_generated_password_context_menu(driver: Firefox):
3740
context_menu.click_and_hide_menu("context-menu-suggest-strong-password")
3841

3942
# Select "Use a Securely Generated Password" in password field and check the "Update password" doorhanger
40-
# is displayed
4143
with driver.context(driver.CONTEXT_CHROME):
4244
login_autofill.get_element("generated-securely-password").click()
45+
46+
# Wait for password field to actually get filled
47+
login_autofill.expect(
48+
lambda _: login_autofill.get_element("password-login-field").get_attribute(
49+
"value"
50+
)
51+
!= ""
52+
)
53+
54+
# Verify the update doorhanger is displayed
55+
with driver.context(driver.CONTEXT_CHROME):
56+
sleep(3)
4357
nav.click_on("password-notification-key")
44-
update_doorhanger = autofill_popup_panel.get_element(
45-
"password-update-doorhanger"
58+
autofill_popup_panel.expect(
59+
lambda _: UPDATE_DOORHANGER_TEXT
60+
in autofill_popup_panel.get_element("password-update-doorhanger").text
4661
)
47-
assert update_doorhanger.text == UPDATE_DOORHANGER_TEXT
4862

4963
# Navigate to about:logins page
5064
tabs.switch_to_new_tab()

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

tests/tabs/test_active_tab.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ def test_active_tab(driver: Firefox):
1717
tabs = TabBar(driver)
1818
num_tabs = 5
1919

20-
# opening 5 tabs
20+
# Open 5 tabs
2121
for i in range(num_tabs):
2222
tabs.new_tab_by_button()
2323

24-
# go through all the tabs and ensure highlighted one is correct, +2 since 1 indexed and additional tab for the beginning
24+
# Go through all the tabs and ensure the focus is correct
2525
for i in range(1, num_tabs + 2):
26-
target_tab = tabs.get_tab(i)
2726
with driver.context(driver.CONTEXT_CHROME):
27+
target_tab = tabs.get_tab(i)
2828
target_tab.click()
29-
visibility = target_tab.get_attribute("visuallyselected")
30-
assert visibility == ""
29+
tabs.custom_wait(timeout=3).until(
30+
lambda d: target_tab.get_attribute("visuallyselected") == ""
31+
)

0 commit comments

Comments
 (0)