-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: incorrect next step message when approval mode enabled #57985
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
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-03-10.at.13.06.46.mp4Android: mWeb ChromeScreen.Recording.2025-03-10.at.13.06.46.mp4iOS: NativeScreen.Recording.2025-03-10.at.13.00.15.mp4iOS: mWeb SafariScreen.Recording.2025-03-10.at.12.53.58.mp4MacOS: Chrome / SafariScreen.Recording.2025-03-09.at.22.46.04.mp4Advance approval Screen.Recording.2025-03-10.at.13.30.15.movMacOS: DesktopScreen.Recording.2025-03-10.at.12.50.08.mp4 |
@@ -578,6 +578,38 @@ describe('libs/NextStepUtils', () => { | |||
expect(result).toMatchObject(optimisticNextStep); | |||
}); | |||
}); | |||
|
|||
test('approval mode enabled', () => { |
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.
Could you please add more test case for advance approval mode?
@suneox I discovered a bug while adding the test: The next to approve is oneself but the message shows other: ![]() I'll investigate and update soon. |
Note to test the advanced approval flow. Screen.Recording.2025-03-10.at.13.30.15.mov |
I'm still investigating, will update today. |
@daledah Could you please provide the steps to reproduce this case? I’ve tested it, and both the basic and advanced approval flows are working as expected in my screenshot/video checklist. And could you please merge with the latest main branch? I’ll verify it again. |
@suneox Here are the steps:
Expected: Next step should be "Waiting for you to approve approve expense(s)", because there's an "approve" button. |
@daledah Could you please provide more details about which member is involved at step 3 when the following members submit expenses?
Based on your expected result, it looks incorrect because, at step 3: select the invited admin, so the next step should refer to the invited admin instead of you. |
@suneox In a multi-approver flow like this one: ![]() User who submit expense will be approved by However when ![]() |
@suneox Sorry for the delay, I'll udpate soon. |
@suneox I updated. |
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.
Works as expected after merging latest main
Screen.Recording.2025-04-01.at.21.54.05.mp4
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.
Perfect, thanks!
✋ 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/robertjchen in version: 9.1.23-1 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.23-7 🚀
|
Explanation of Change
Fixed Issues
$ #57574
PROPOSAL: #57574 (comment)
Tests
Offline tests
QA Steps
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
Screen.Recording.2025-03-07.at.14.06.22.mov
Android: mWeb Chrome
Screen.Recording.2025-03-07.at.14.07.31.mov
iOS: Native
Screen.Recording.2025-03-07.at.14.08.49.mov
iOS: mWeb Safari
Screen.Recording.2025-03-07.at.14.11.07.mov
MacOS: Chrome / Safari
Screen.Recording.2025-03-07.at.14.12.44.mov
MacOS: Desktop
Screen.Recording.2025-03-07.at.14.13.52.mov