Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@mountiny here is the follow up PR with just tests comments description |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
| // When the retry payload is rebuilt from what the failure left in Onyx | ||
| const payload = buildRetryPayload(context, receiptFile); | ||
|
|
||
| // Then it keeps the transaction ID, so a re-send that already reached the server gets "Transaction already created" instead of a second expense |
There was a problem hiding this comment.
The test only verifies that the original transaction ID is preserved, but doesn't verify that the server returns "Transaction already created". Am I missing something?
There was a problem hiding this comment.
Bad wording, the tests cover only our side, not the server. I reworded it and also adjusted 3 more similar examples
mountiny
left a comment
There was a problem hiding this comment.
Perfect. Thank you for following up.
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.5.7-0 🚀
|
Explanation of Change
Follow-up to #102893
This adds description comments, to:
tests/unit/ReceiptUploadRetryHandlerTest.ts, including the ones fromtests/actions/IOUTest/ReceiptTest.tsOne-line tests are split into setup, call and assertion so each section has its own comment. Test names and assertions are unchanged. No app code changes.
Fixed Issues
$ #102494
PROPOSAL:
Tests
npx jest tests/unit/ReceiptUploadRetryHandlerTest.ts tests/actions/IOUTest/ReceiptTest.tsOffline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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