Fix WS chat shows default avatar when uploading the avatar while offline#53618
Conversation
|
@paultsimura 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] |
|
@bernhardoj this case looks like something that can be covered with a unit test. |
|
Checking |
…uploaded-while-offline
|
Updated |
|
@bernhardoj please run |
Reviewer Checklist
Screenshots/VideosAndroid: Native2024-12-09.-.16.46.-.android.mp4Android: mWeb Chrome2024-12-09.-.16.46.-.chrome.mp4iOS: Native2024-12-09.-.16.46.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-12-09.at.16.43.47.mp4iOS: mWeb Safari2024-12-09.-.16.46.-.Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-12-09.at.16.41.56.mp4MacOS: Chrome / Safari2024-12-09.-.16.46.-.Screen.Recording.2024-12-09.at.16.35.00.mp4MacOS: Desktop2024-12-09.-.16.46.-.Screen.Recording.2024-12-09.at.16.36.03.mp4 |
tests/unit/ReportUtilsTest.ts
Outdated
| }); | ||
|
|
||
| describe('getWorkspaceIcon', () => { | ||
| it('should not used cached icon when avatar is updated', () => { |
There was a problem hiding this comment.
| it('should not used cached icon when avatar is updated', () => { | |
| it('should not use cached icon when avatar is updated', () => { |
tests/unit/ReportUtilsTest.ts
Outdated
| const workspace = LHNTestUtils.getFakePolicy('1', 'ws'); | ||
| const workspaceChat = LHNTestUtils.getFakeReport(); | ||
| workspaceChat.policyID = workspace.id; | ||
|
|
|
Fixed |
MarioExpensify
left a comment
There was a problem hiding this comment.
The code change was minor but the test was a great addition! Thank you
|
✋ 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/MarioExpensify in version: 9.0.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.0.74-8 🚀
|
Explanation of Change
Fixed Issues
$ #53257
PROPOSAL: #53257 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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
Android: Native
android.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4