-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Set testing receipt as scan complete and hardcode known data #59573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@ 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] |
@grgia there is a small bug because the server doesn't seem to be sending the iouReport referenced by the transaction preview using the test receipt in Before logging out: ![]() After logging back in: ![]() I can work on this tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this, looking great 🏎️
@aldo-expensify nice catch- do you have an issue for this already? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Btw, the QA steps you wrote are really thorough, nice job on those! |
🚧 @grgia has triggered a test app build. You can view the workflow run here. |
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
No, I think I can just use the original issue: https://github.com/Expensify/Expensify/issues/473128 I want to check first if this is also happening for manual transactions that get paid. Maybe it is by design that we are not sending the liked report if it is already paid. |
✋ 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/aldo-expensify in version: 9.1.24-2 🚀
|
@aldo-expensify Team found issue #59778 |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
1 similar comment
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
Explanation of Change
Added a key
isTestReceipt: true
in the typeReceipt
. I chosetrue
instead ofboolean
because I'm not planning on adding the key when this is not a test receipt.When the test receipt is added from tutorial tootip, the receipt is created with
isTestReceipt
, which should be more reliable than checking for the filename.I'm setting the known amount/currency/merchant/scanstate = complete as soon as the user presses the "Create expense". If I set it early, the text of the button changes and it includes the amount. I assumed we didn't want the button showing the amount because this is simulating a "smartscan":
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/473128
PROPOSAL:
Tests
Check that the flow with the testing receipt works:
Check that the flow with a custom user uploaded works:
[email protected]
Offline tests
QA Steps
Check that the flow with the testing receipt works:
Check that the flow with a custom user uploaded works:
[email protected]
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-04-02.at.6.48.27.PM.mov
MacOS: Desktop