Migrate BaseOnfidoWeb.js to functional component#20142
Conversation
|
@youssef-lr Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@allroundexperts I assigned you as a C+ reviewer. please re-assign another C+ member if you don't have a bandwidth 🙇 I also assigned you to the GH issue connected to this PR. |
Reviewer Checklist
Screenshots/Videos |
@hayata-suenaga I'm getting this error. Seems like you're passing |
|
@hayata-suenaga Do you have any update here? |
|
will work on the fix today 🙇 |
|
On it today! |
|
Hi @hayata-suenaga!
|
# Conflicts: # src/components/Onfido/BaseOnfidoWeb.js
|
ah we don't run prettier pre-commit? didn't know that |
this is a component only for web. We don't have to include screenshots for other platforms |
allroundexperts
left a comment
There was a problem hiding this comment.
Looks good. Thanks @hayata-suenaga!
|
@roryabraham Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
roryabraham
left a comment
There was a problem hiding this comment.
Lint is failing, otherwise LGTM
|
✋ 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 staging by https://github.com/roryabraham in version: 1.3.42-0 🚀
|
|
@hayata-suenaga Should we QA this PR? Can you pls update QA steps if Yes |
|
yes we want to QA this. ah I forgot to move the QA section title to the test section (they're the same) sorry about that |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|







Details
Fixed Issues
$ #16177
PROPOSAL: N/A
Tests / QA
The component migrated is used to initialize Onfido. The purpose of the following test steps is to make sure that Onfido identity verification flow is triggered correctly. The component is only used on Web and Desktop. You don't need to test this flow on native mobile platforms (i.e. iOS and Android).
Log in to NewDot with an account that hasn't completed the KYC flow
Go to
http://localhost:8080/settings/payments/enable-payments (development)
https://staging.new.expensify.com/settings/payments/enable-payments (staging)
If you're testing on desktop, put the following URL to your web browser and wait to be prompted to switch to desktop app. If you're not prompted, comment out the
returnstatement here.On the personal details form, input the following values.
Test data is taken from this SO
first name: Alberta
last name: Charleson
last four digits of SSN: 3333
For other fields, input any values
Click the
Save & continuebuttonOn
Verify identitypage that is shown, clickContinueConfirm the term and condition from Onfido is shown. Click
AcceptConfirm you're prompted to choose a Passport or Driver's license to verify your identity
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/A
Desktop
iOS
N/A
Android
N/A