Fix: Web - Country field does not autofill for certain addresses. #21520#21853
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
recheck |
|
I have made a draft PR, I'll update it as soon as I have a high traffic account to test with. |
|
I have tested changes with high traffic account and it works as expected, the PR is ready for review. |
bondydaa
left a comment
There was a problem hiding this comment.
please add a test to tests/unit/GooglePlacesUtilsTest.js so that if this breaks in the future we'll catch it automatically
Reviewer Checklist
Screenshots/VideosWeb21853.Web.movMobile Web - Chrome21853.mWeb.Chrome.webmMobile Web - Safari21853.mWeb.Safari.mp4Desktop21853.Desktop.moviOS21853.iOS.mp4Android21853.Android.webm |
mollfpr
left a comment
There was a problem hiding this comment.
All tests well, just a minor comment regarding the lodash method.
|
Had to approve the CI actions to run again for some reason - tests should pass now. |
|
|
@bondydaa Could you please review the requested changes. 😃 |
|
✋ 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/bondydaa in version: 1.3.37-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.37-7 🚀
|
Details
Country field does not auto-fill for certain addresses (eg. Bangladesh Border Road), fallback for country code fetched from
getPlaceAutocompleteTerms()can be used.Fixed Issues
$ https://github.com/Expensify/App/issues/21520
$ https://github.com/Expensify/App/issues/21520(comment)
Tests
Address line 1fieldBangladesh Border Roadwhich was causing the issue)Countryfield is filled withBangladeshOffline tests
!! Autofill doesn't work in offline mode, so can't test it while offline.
QA Steps
Address line 1fieldBangladesh Border Roadwhich was causing the issue)Countryfield is filled withBangladeshPR 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
Mobile Web - Safari
Desktop
iOS
Android