-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: app does not open admin room after onboarding #55654
Conversation
Let @DylanDylann and me know if we can be of any help in getting that unit test done! We're trying to get this merged today if possible! |
hey @mkzie2, what's blocking you from getting this PR in review? How can we help? This one's a top priority for us, thanks! |
@DylanDylann It looks like this is pretty nearly there, just need the test and the lint errors - do you think you could take this one over to move it along? |
I had problem with the tests but found a solution. I'm recording evidences. Will be ready in 1 hour. |
@mkzie2 Is this ready? |
@DylanDylann @dangrous As I'm still having problems with the unit test (it ran successfully locally but did not through GH actions) and given the urgency, I suggest we separate this PR into 2 parts: The fix for the issue & the unit test. I'll create the follow-up PR later. Wdyt? |
Hrm, I'd really like the tests to ship with it, if at all possible. Playing around with your latest test (reverting your revert), it's not passing for me locally either. Soooo that might help with testing the test? Pressing the employee selection isn't marking the option as pressed. Maybe because it's a selection list not a button/menu? Not sure if that helps, but maybe |
@mkzie2 For simpler, I think we only need to add UTs for navigateAfterOnboarding function instead of simulating the total onboarding flow |
Yeah @DylanDylann's suggestion sounds good to me - that should make it easier! Only potential weird part about that is the @mkzie2 can you take a look and try to get this into final review on Monday? Thanks! |
@DylanDylann Updated the UT. |
Hi all!
Let's shoot for getting this out today! |
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.
LGTM!
@mkzie2 Also please merge the latest main to resolve Jest Unit Tests / test (job 3) failure |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-04.at.13.57.39.movAndroid: mWeb ChromeScreen.Recording.2025-02-04.at.13.55.04.moviOS: NativeScreen.Recording.2025-02-04.at.13.57.11.moviOS: mWeb SafariScreen.Recording.2025-02-04.at.13.54.36.movMacOS: Chrome / SafariScreen.Recording.2025-02-04.at.13.45.06.movMacOS: DesktopScreen.Recording.2025-02-04.at.13.55.47.mov |
Some minor comments. The rest looks fine cc @dangrous |
Updated. |
expect(Navigation.navigate).not.toHaveBeenCalled(); | ||
}); | ||
|
||
it('should navigate to last accessed report if shouldOpenOnAdminRoom is true on small screens', () => { |
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.
It should be "should navigate to last accessed report on small screens"
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.
Almost done. One minor comment
expect(Navigation.navigate).not.toHaveBeenCalled(); | ||
}); | ||
|
||
it('should navigate to last accessed report if shouldOpenOnAdminRoom is true on small screens', () => { |
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.
it('should navigate to last accessed report if shouldOpenOnAdminRoom is true on small screens', () => { | |
it('should navigate to last accessed report on small screens', () => { |
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.
In this case, we don't need to care shouldOpenOnAdminRoom and onboardingAdminsChatReportID param
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.
This is the shouldOpenOnAdminRoom
function I mentioned. It returns true when the URL contains openOnAdminRoom
param:
export default function shouldOpenOnAdminRoom() { |
Not the shouldOpenAdminRoom
param we just removed above. So no need to update this comment.
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.
ah, got it
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.
This looks good to me!
In the interests of getting this merged, I'm going to go ahead without that comment change - but @mkzie2 can you please create a quick follow up PR to update? What @DylanDylann suggested makes sense.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@dangrous @DylanDylann No need for follow-up PR #55654 (comment) |
🚀 Deployed to staging by https://github.com/dangrous in version: 9.0.95-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
Explanation of Change
Fixed Issues
$ #55336
PROPOSAL: #55336 (comment)
Tests
Manage my team's expenses
>1-10 employees
> Any accounting platform#admins
roomOffline tests
NA
QA Steps
Same as Tests
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-01-30.at.18.52.09.mov
Android: mWeb Chrome
Screen.Recording.2025-01-30.at.18.39.58-compressed.mov
iOS: Native
Screen.Recording.2025-01-30.at.01.23.34-compressed.mov
iOS: mWeb Safari
Screen.Recording.2025-01-30.at.18.37.36-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-30.at.01.18.31-compressed.mov
MacOS: Desktop
Screen.Recording.2025-01-30.at.01.21.54-compressed.mov