Closed Bug 1497225 Opened 3 years ago Closed 3 years ago

Hidden address fields lose their asterisks after changing to a Country or Region that requires those fields

Categories

(Firefox :: WebPayments UI, defect, P1)

defect

Tracking

()

VERIFIED FIXED
Firefox 65
Tracking Status
firefox64 --- disabled
firefox65 --- verified

People

(Reporter: tbabos, Assigned: jaws)

References

(Depends on 1 open bug)

Details

(Whiteboard: [webpayments])

Attachments

(2 files)

[Affected versions]: 
Nightly 64.0a1 

[Affected platforms]:
Platforms: Windows 10 x64

[Preconditions]:
1. Set the pref dom.payments.request.enabled to "true";
2. Make sure you have at least one Shipping Address and one Credit Card saved in your browser.

[Steps to reproduce]:
1. Go to "https://rsolomakhin.github.io/pr/single/" page and click on "Buy".
2. From "Shipping Address" click on "Add".
3. Check the pre-selected Country - in our case it is Romania. Note that the 'State" field will be hidden as expected.
4. Select "United State" from Country or region.
5. Observe "State" field.

[Expected result]:
"State" field should be marked as required - have an asterisk. 

[Actual result]:
The asterisk from the "State" field that is now visible is missing. 

[Note]:
This issue occurs in both Add (only if the preselected country has a hidden address field) and Edit shipping address forms.

It is more visible if its reproduced via the following steps:

1. Add a new shipping address with the Country or Region being "Macau" - only street address field appears, the rest of the address fields are hidden - and save it.
2. Edit the saved address from Macau back to the United States

* The "City", "Zip Code" and "State" have missing asterisks even if they are required to save the address. 

* Bug 1496061 - might as well be a duplicate for this since our Country is always pre-filled with Romania, thus the hidden 'State" field will lose it's asterisk when US is selected.
Flags: qe-verify+
Duplicate of this bug: 1496061
Priority: -- → P3
Whiteboard: [webpayments] [triage] → [webpayments-reserve]
Depends on: 1481481
Summary: Hidden address fields lose their asterisks after changing to a Country or Region that requires those fields → Hidden address fields lose their asterisks after changing to a Country or Region that requires those fields
Depends on: 1483412
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: [webpayments-reserve] → [webpayments]
Attachment #9021979 - Attachment description: Bug 1497225 - Add a test that confirms the asterisk will be added to the address-level1 (State) field when changing countries. r?MattN → Bug 1497225 - Update the required asterisk display when changing countries. r?MattN
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8cd7b1c3737a
Update the required asterisk display when changing countries. r=sfoster,MattN
Flags: needinfo?(jaws)
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e736a623e623
Update the required asterisk display when changing countries. r=sfoster,MattN
https://hg.mozilla.org/mozilla-central/rev/e736a623e623
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Flags: in-testsuite+
Verified - Fixed on latest Nightly 65.0a1 (2018-11-11) (64-bit) on Windows 7/10, Ma OS 10.13 and Ubuntu 16.04.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.