[No QA] Investigate workflow job failing on main: test / test (job 2)#69166
[No QA] Investigate workflow job failing on main: test / test (job 2)#69166mountiny merged 3 commits intoExpensify:mainfrom
Conversation
|
@shubham1206agra 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] |
| await waitForBatchedUpdatesWithAct(); | ||
|
|
There was a problem hiding this comment.
| await waitForBatchedUpdatesWithAct(); |
I don't think we need this.
Reviewer Checklist
|
| TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0); | ||
|
|
||
| await waitForBatchedUpdatesWithAct(); | ||
| await waitForNetworkPromises(); |
There was a problem hiding this comment.
Could you add a comment here to explain why this is needed in some future prs
There was a problem hiding this comment.
You mean by adding a code-comment or can comment directly here? @mountiny
| TestHelper.expectAPICommandToHaveBeenCalled('GetNewerActions', 0); | ||
|
|
||
| await waitForBatchedUpdatesWithAct(); | ||
| await waitForNetworkPromises(); |
There was a problem hiding this comment.
We need to use waitForNetworkPromises instead of waitForBatchedUpdatesWithAct to prevent this from being flaky test. This is because the test is not waiting for the pagination middleware to fully process the GetOlderActions response and update the component tree. The waitForBatchedUpdatesWithAct() call is not sufficient because it doesn't wait for the specific pagination processing to complete
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.1.99-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
Explanation of Change
Fixed Issues
$ #68451
PROPOSAL: #68451 (comment)
Tests
No
Offline tests
QA Steps
No
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