Skip to content

Commit 3c1e2bb

Browse files
committed
vs/CC-doorhanger-data-is-saved-in-about-prefs
1 parent dfe1fdc commit 3c1e2bb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

l10n_CM/Unified/test_demo_cc_doorhanger_data_is_stored_in_about_prefs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_demo_cc_data_captured_in_doorhanger_and_stored(driver: Firefox, region:
3939
doorhanger_text = autofill_popup_obj.get_cc_doorhanger_data("cc-doorhanger-data")
4040
assert credit_card_sample_data.card_number[-4:] in doorhanger_text, f"Expected last 4 digits '{credit_card_sample_data.card_number[-4:]}' but not found."
4141
assert credit_card_sample_data.name in doorhanger_text, f"Expected name '{credit_card_sample_data.name}' but not found."
42-
assert credit_card_sample_data.cvv not in doorhanger_text, f"cvv '{credit_card_sample_data.cvv}' should not be saved, but found in doorhanger."
42+
assert credit_card_sample_data.cvv not in doorhanger_text, f"CVV '{credit_card_sample_data.cvv}' should not be saved, but found in doorhanger."
4343

4444
# Click the "Save" button using click_doorhanger_button
4545
autofill_popup_obj.click_doorhanger_button("save")
@@ -55,4 +55,4 @@ def test_demo_cc_data_captured_in_doorhanger_and_stored(driver: Firefox, region:
5555
# Validate stored values match expected values
5656
assert elements[0].endswith(credit_card_sample_data.card_number[-4:]), f"Expected last 4 digits '{credit_card_sample_data.card_number[-4:]}' but got '{elements[0]}'"
5757
assert elements[1] == credit_card_sample_data.name, f"Expected name '{credit_card_sample_data.name}' but got '{elements[1]}'"
58-
assert credit_card_sample_data.cvv not in elements, f"cvv '{credit_card_sample_data.cvv}' should not be saved, but found in stored values."
58+
assert credit_card_sample_data.cvv not in elements, f"CVV '{credit_card_sample_data.cvv}' should not be saved, but found in stored values."

modules/data/autofill_popup.components.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@
8383
"selectorData": "address-save-update-notification-content",
8484
"strategy": "class",
8585
"groups": []
86+
},
87+
88+
"cc-doorhanger-data": {
89+
"selectorData": "popupnotificationcontent[class='credit-card-save-update-notification-content'] description",
90+
"strategy": "css",
91+
"groups": []
8692
}
8793
}
8894

0 commit comments

Comments
 (0)