Open Bug 1497500 Opened 8 years ago Updated 2 years ago

Address picker open state options don't vary by country

Categories

(Firefox :: WebPayments UI, defect, P3)

defect

Tracking

()

People

(Reporter: tbabos, Unassigned)

References

Details

(Whiteboard: [webpayments-reserve])

Attachments

(1 file, 1 obsolete file)

Attached video Video of the issue —
[Affected versions]: Nightly 64.0a1 [Affected platforms]: Platforms: Windows 10 x64, MAC OS 10.13, Ubuntu 16.04 [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. Add a new Shipping Address with the country "China" - notice that the field positions change 3. Save the address to return to the Order Summary page 4. Check the layout of the Shipping Address field 5. Click on the drop-down and check the same address from China [Expected result]: The Shipping Address layout should be displayed as in the spec with the Name and Address in the first row, followed by the rest of the address in the second row as in spec:https://mozilla.invisionapp.com/share/YAFI31XR3KP#/screens/275361836 [Actual result]: 1. The Zip Code and State will be displayed in the first row - seems like the order is decided based on the position of the fields in the add/edit forms. Check out the attached video for a clear view of the issue. 2. If the drop-down menu is selected, the Name and state is displayed - as expected based on doc: https://mozilla.invisionapp.com/share/YAFI31XR3KP#/screens/275361836 [Note]: This issue can be observed for every Country or Region that changes the order of the fields. Are field position changes intended? Please note that it also affects the autofill side as mentioned in Bug 1496058. The autofill feature is not functional for the countries that changed field positioning.
Flags: qe-verify+
(In reply to Timea Babos from comment #0) > Created attachment 9015508 [details] > Video of the issue > > [Affected versions]: > Nightly 64.0a1 > > [Affected platforms]: > Platforms: Windows 10 x64, MAC OS 10.13, Ubuntu 16.04 > > [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. Add a new Shipping Address with the country "China" - notice that the > field positions change > 3. Save the address to return to the Order Summary page > 4. Check the layout of the Shipping Address field > 5. Click on the drop-down and check the same address from China > > [Expected result]: > The Shipping Address layout should be displayed as in the spec with the Name > and Address in the first row, followed by the rest of the address in the > second row as in > spec:https://mozilla.invisionapp.com/share/YAFI31XR3KP#/screens/275361836 > > [Actual result]: > 1. The Zip Code and State will be displayed in the first row - seems like > the order is decided based on the position of the fields in the add/edit > forms. Check out the attached video for a clear view of the issue. This is expected. The spec is just too US/CA-specific. Jacqueline, could you explain in the spec(s) that the order of the field shown in the address picker (and edit forms) vary by country norms? > 2. If the drop-down menu is selected, the Name and state is displayed - as > expected based on doc: > https://mozilla.invisionapp.com/share/YAFI31XR3KP#/screens/275361836 Yeah, I think that's not great as we just use the first 2 non-empty fields in an order which isn't country-specific. It's probably not too bad but could be better. For dev. reference: the code is at formatSingleLineLabel and PaymentDialogUtils.getAddressLabel I will morph this bug to cover #2.
Priority: -- → P3
Summary: Field position changes based on selected Country or Region affects the Shipping Address field layout → Address picker open state options don't vary by country
Whiteboard: [webpayments] [triage] → [webpayments-reserve]
Severity: normal → S3
Attachment #9384498 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: