Closed Bug 1491791 Opened 6 years ago Closed 6 years ago

"Add" button isn't grayed out when adding a wrong card number

Categories

(Firefox :: WebPayments UI, defect, P1)

64 Branch
defect

Tracking

()

VERIFIED FIXED
Firefox 64
Tracking Status
firefox64 --- verified

People

(Reporter: hyacoub, Assigned: jaws)

Details

(Whiteboard: [webpayments])

Attachments

(2 files, 1 obsolete file)

Affected versions]: 
Nightly 64.0a1 

[Affected platforms]:
Platforms: Windows 10/7 x64, Ubuntu 18.04, Mac OS 10.13

[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 "Payments Method" click on "Add".
3. Fill all the fields with correct data but leave "Card Number" empty for now.
4. Enter a valid Card number and observe "Add" button.
5. Add a any number to the card number.
6. Click anywhere and observe "Add" button.


[Expected result]:
"Add" button should be grayed out.

[Actual result]:
- Red outline is displayed all around the field.
- "Add" button isn't grayed out.
Flags: qe-verify+
QA Contact: hani.yacoub
Whiteboard: [webpayments] [triage]
Attached image Add credit card.png
Priority: -- → P2
Whiteboard: [webpayments] [triage] → [webpayments]
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Priority: P2 → P1
Attachment #9010065 - Attachment is obsolete: true
The validity of the cc-number field is only updated to a failure state after the 'change' event in the EditCreditCard class, but there was no code within basic-card-form.js to update the Save button enabled state after the 'change' event had been handled by EditCreditCard.
Comment on attachment 9010339 [details]
Bug 1491791 - Update the Save button state after the 'change' event. r?MattN

Matthew N. [:MattN] (PM me if requests are blocking you) has approved the revision.
Attachment #9010339 - Flags: review+
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/33a833eab418
Update the Save button state after the 'change' event. r=MattN
https://hg.mozilla.org/mozilla-central/rev/33a833eab418
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Verified as fixed on Firefox Nightly 64.0a1 on Windows 10 x 64, Windows 7 x32, Mac OS X 10.13 and Ubuntu 18.04 x64.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: