Fix Flaky test in ReportUtilsTest.ts for report preview name#64986
Fix Flaky test in ReportUtilsTest.ts for report preview name#64986tgolen merged 8 commits intoExpensify:mainfrom
Conversation
|
@QichenZhu 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] |
|
@tgolen It's because we're using data from |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@tgolen I replied the comments above |
|
@tgolen @QichenZhu I updated the PR, can you please check again? |
|
Looks okay to me. @tgolen, do the new changes meet your expectations? |
|
@aldo-expensify I'm adding you as a reviewer here since you also had some thoughts about this test. |
|
@nkdengineer there are also some conflicts |
|
Thanks for your suggestions. I updated the PR to add more comments |
|
@QichenZhu Can you please take another look? |
|
Not sure why the jest unit tests is failing. I ran on my local device and it passed |
|
@nkdengineer that doesn't seem related to this PR, and others have reported it failing too: #64614 (comment) |
|
Yeah, that test is passing for me locally too. Where else are people seeing failures? If you need to, you can comment out the test for now. I've re-ran the Jest tests just to see if it will pass. |
|
Looks like it passed now! |
|
Oh, FYI, that flaky unit test is being fixed in #65224 |
|
Thank you @QichenZhu @tgolen. Is it good to merge now? |
|
Looks fine from my side. |
tgolen
left a comment
There was a problem hiding this comment.
That looks great, thank you! Those tests are much better now.
|
✋ 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/tgolen in version: 9.1.75-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.76-5 🚀
|
Explanation of Change
We're using initOnyxDerivedValues in
App/tests/unit/ReportUtilsTest.ts
Line 259 in 6b934d1
that make reportAttributesDerivedValue has value, in this case attributes[report.reportID].reportName; is
Five, ...Fixed Issues
$ #64815
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop