Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

For #18271 - [Saved cards] Display the credit card provider icon #19652

Merged
merged 1 commit into from
May 26, 2021

Conversation

gabrielluong
Copy link
Member

Fixes #18271

Pull Request checklist

  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features. In addition, it includes a screenshot of a successful accessibility scan to ensure no new defects are added to the product.

To download an APK when reviewing a PR:

  1. click on Show All Checks,
  2. click Details next to "Taskcluster (pull_request)" after it appears and then finishes with a green checkmark,
  3. click on the "Fenix - assemble" task, then click "Run Artifacts".
  4. the APK links should be on the left side of the screen, named for each CPU architecture

@gabrielluong gabrielluong added the pr:needs-ac-bump PR that needs a AC bump label May 25, 2021
…ider icon and report the correct card type
@gabrielluong gabrielluong marked this pull request as ready for review May 26, 2021 19:08
@gabrielluong gabrielluong requested review from a team as code owners May 26, 2021 19:08
@gabrielluong gabrielluong removed the pr:needs-ac-bump PR that needs a AC bump label May 26, 2021

assertTrue(americanExpressCard.validateCreditCardNumber())
assertTrue(dinnersClubCard.validateCreditCardNumber())
assertTrue(discoverCard.validateCreditCardNumber())
assertTrue(jcbCard.validateCreditCardNumber())
assertTrue(masterCardCard.validateCreditCardNumber())
assertTrue(visaCard.validateCreditCardNumber())
assertTrue(voyagerCard.validateCreditCardNumber())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove this assertion?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't support voyager in our recognized network so this will always fail.

@@ -22,7 +23,7 @@ class CreditCardEditorStateTest {
cardNumberLast4 = "1110",
expiryMonth = 5,
expiryYear = 2030,
cardType = "amex",
cardType = CreditCardNetworkType.AMEX.cardName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leaving a comment here that cardType should really be the enum value. This is something that was discussed on the AC changes as well. The effects of not using that here means that consumers need to constantly convert from a non-type checked value whenever they need to use it.

@gabrielluong gabrielluong reopened this May 26, 2021
@gabrielluong gabrielluong merged commit c11335f into mozilla-mobile:master May 26, 2021
@gabrielluong gabrielluong deleted the 18271 branch May 26, 2021 20:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Saved cards] Display the credit card provider icon
2 participants