After the form is correctly filled out, and isCreditCardValid correctly returns true, I'm able to click on the credit card number, erase a bunch of the numbers (thus rendering the number incorrect), focus on some other field on the screen, and have isCreditCardValid still return true (when, in fact, I had expected it to return false).
I'm working with Stripe, which went on to fail because the data in the CreditCardForm was actually invalid at that point.
After the form is correctly filled out, and
isCreditCardValid
correctly returnstrue
, I'm able to click on the credit card number, erase a bunch of the numbers (thus rendering the number incorrect), focus on some other field on the screen, and haveisCreditCardValid
still returntrue
(when, in fact, I had expected it to returnfalse
).I'm working with Stripe, which went on to fail because the data in the
CreditCardForm
was actually invalid at that point.