diff --git a/browser/extensions/formautofill/test/browser/address/browser_address_capture_form_removal.js b/browser/extensions/formautofill/test/browser/address/browser_address_capture_form_removal.js index 13cd3b4fc5aa..e0639a28dc72 100644 --- a/browser/extensions/formautofill/test/browser/address/browser_address_capture_form_removal.js +++ b/browser/extensions/formautofill/test/browser/address/browser_address_capture_form_removal.js @@ -17,7 +17,7 @@ async function expectSavedAddresses(expectedAddresses) { } const ADDRESS_FIELD_VALUES = { - "given-name": "Test User", + "given-name": "John", organization: "Sesame Street", "street-address": "123 Sesame Street", }; diff --git a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_display.js b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_display.js index 11a0b676f5cb..5a799bf1b723 100644 --- a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_display.js +++ b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_display.js @@ -30,7 +30,8 @@ add_task(async function test_save_doorhanger_shown_no_profile() { await focusUpdateSubmitForm(browser, { focusSelector: "#given-name", newValues: { - "#given-name": "Test User", + "#given-name": "John", + "#family-name": "Doe", "#organization": "Sesame Street", "#street-address": "123 Sesame Street", "#tel": "1-345-345-3456", @@ -85,7 +86,8 @@ add_task( await focusUpdateSubmitForm(browser, { focusSelector: "#given-name", newValues: { - "#given-name": "Cena", + "#given-name": "John", + "#family-name": "Doe", "#street-address": TEST_ADDRESS_1["street-address"], "#country": TEST_ADDRESS_1.country, "#email": TEST_ADDRESS_1.email, diff --git a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_invalid_fields.js b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_invalid_fields.js index 61357b01f9a3..71eb3bc9c348 100644 --- a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_invalid_fields.js +++ b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_invalid_fields.js @@ -50,6 +50,7 @@ add_task(async function test_do_not_save_invalid_fields() { focusSelector: "#given-name", newValues: { "#given-name": VALID_ADDRESS["given-name"], + "#family-name": VALID_ADDRESS["family-name"], "#street-address": VALID_ADDRESS["street-address"], "#address-level1": VALID_ADDRESS["address-level1"], "#address-level2": VALID_ADDRESS["address-level2"], diff --git a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_state.js b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_state.js index d53e35d24fef..1ac1b299bd83 100644 --- a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_state.js +++ b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_state.js @@ -24,7 +24,8 @@ add_setup(async function () { add_task(async function test_save_doorhanger_state_invalid() { const DEFAULT = { - "given-name": "Test User", + "given-name": "John", + "family-name": "Doe", organization: "Mozilla", "street-address": "123 Sesame Street", country: "US", @@ -53,6 +54,7 @@ add_task(async function test_save_doorhanger_state_invalid() { focusSelector: "#given-name", newValues: { "#given-name": DEFAULT["given-name"], + "#family-name": DEFAULT["family-name"], "#organization": DEFAULT.organization, "#street-address": DEFAULT["street-address"], "#address-level1": TEST.filled["address-level1"], @@ -71,7 +73,8 @@ add_task(async function test_save_doorhanger_state_invalid() { add_task(async function test_save_doorhanger_state_valid() { const DEFAULT = { - "given-name": "Test User", + "given-name": "John", + "family-name": "Doe", organization: "Mozilla", "street-address": "123 Sesame Street", country: "US", @@ -108,6 +111,7 @@ add_task(async function test_save_doorhanger_state_valid() { focusSelector: "#given-name", newValues: { "#given-name": DEFAULT["given-name"], + "#family-name": DEFAULT["family-name"], "#organization": DEFAULT.organization, "#street-address": DEFAULT["street-address"], "#address-level1": TEST.filled["address-level1"], diff --git a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_tel.js b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_tel.js index 32167ce66096..4d95452da483 100644 --- a/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_tel.js +++ b/browser/extensions/formautofill/test/browser/address/browser_address_doorhanger_tel.js @@ -25,7 +25,8 @@ add_setup(async function () { add_task(async function test_save_doorhanger_tel_invalid() { const EXPECTED = [ { - "given-name": "Test User", + "given-name": "John", + "family-name": "Doe", organization: "Mozilla", "street-address": "123 Sesame Street", tel: "", @@ -49,7 +50,8 @@ add_task(async function test_save_doorhanger_tel_invalid() { await focusUpdateSubmitForm(browser, { focusSelector: "#given-name", newValues: { - "#given-name": "Test User", + "#given-name": "John", + "#family-name": "Doe", "#organization": "Mozilla", "#street-address": "123 Sesame Street", "#tel": TEST, @@ -69,7 +71,8 @@ add_task(async function test_save_doorhanger_tel_invalid() { add_task(async function test_save_doorhanger_tel_concatenated() { const EXPECTED = [ { - "given-name": "Test User", + "given-name": "John", + "family-name": "Doe", organization: "Mozilla", tel: "+15202486621", }, @@ -77,6 +80,7 @@ add_task(async function test_save_doorhanger_tel_concatenated() { const MARKUP = `