-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix P2P Debit cards are being displayed twice on the Payments page #12178
Fix P2P Debit cards are being displayed twice on the Payments page #12178
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good but can you also please add tests for the red brick road for payment methods? Example, when you try to set a bank account and/or debit card as your default payment method when offline and entered the wrong password.
In addition, just as a heads up, QA will not be able to add a debit card on staging. So this might need to be tested internally with someone who can add a real US debit card.
Updated the PR description |
Let me know if C+ review is needed. |
Please can the reviewers check the PR review checklist, so I can get this merged ASAP? |
@parasharrajat , maybe you can test this and check off the PR reviewer checklist? |
Sure, I will try to test it. |
I can't test it unless someone share instruction to add a debit card. |
What are you missing? Aren't the instructions on the main post enough? |
|
Not quite, C+ and Qa can't test this because there is no way to add a test debit card on staging currently. We're working on it on this internal issue: https://github.com/Expensify/Expensify/issues/237181#issuecomment-1298509438 In addition, I think the test instructions to add a debit card could be more descriptive, @Justicea83. We normally outline the data to be entered in the form. |
iOS / native Simulator.Screen.Recording.-.iPhone.14.-.2022-11-02.at.15.05.15.mp4Android / native Screen.Recording.2022-11-02.at.3.14.00.PM.moviOS / Safari Simulator.Screen.Recording.-.iPhone.14.-.2022-11-02.at.15.03.48.mp4Android / Chrome Screen.Recording.2022-11-02.at.3.17.08.PM.movMacOS / Chrome Screen.Recording.2022-11-02.at.2.37.27.PM.movMacOS / Desktop Screen.Recording.2022-11-02.at.3.23.59.PM.mov |
Triggered auto assignment to @amyevans ( |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to production by @Julesssss in version: 1.2.23-9 🚀
|
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/233319
Tests
First Add a card
Sign In to NewDot
Navigate to Settings > Payments > Add payment method > Debit card
Fill the form with any details, but use 4242 4242 4242 4242 for the card number
Signin to NewDot.
Click on your profile picture >
Payments
.If you have a card is a payment method, ensure it's not duplicated as a bank account.
Tests For RBR handling for payment methods from here:
window.Onyx = Onyx;
to setup/index.jsOnyx.merge('bankAccountList', {"827591": {pendingAction: 'delete', errors: {1: 'This is an error'}}})
2022-10-27_14-23-32.mp4
QA Steps
First Add a card.
Tests
Payments
.QA for RBR handling for payment methods:
Payments
.Make default payment method
PR Review Checklist
PR Author Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android