(Fix) [Manager McTest] When a user is invited to a workspace, the scanning test tooltip still displays#60187
Conversation
|
@DylanDylann 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] |
|
Update: Added some unit tests |
tests/unit/PolicyUtilsTest.ts
Outdated
| describe('isUserInvitedToWorkspace', () => { | ||
| beforeEach(() => { | ||
| wrapOnyxWithWaitForBatchedUpdates(Onyx); | ||
| // Onyx.set(ONYXKEYS.PERSONAL_DETAILS_LIST, personalDetails); |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-04-16.at.13.56.55.movAndroid: mWeb ChromeScreen.Recording.2025-04-16.at.13.54.16.moviOS: NativeScreen.Recording.2025-04-16.at.13.55.52.moviOS: mWeb SafariScreen.Recording.2025-04-16.at.13.54.39.movMacOS: Chrome / SafariScreen.Recording.2025-04-16.at.13.47.33.movMacOS: DesktopScreen.Recording.2025-04-16.at.13.55.16.mov |
|
🚧 @grgia has triggered a test app build. You can view the workflow run here. |
|
Lint errors fixed! CC: @grgia @DylanDylann |
|
@JKobrynski would you mind merging main one last time? thank you! |
…9-remove-tooltip-for-invited-users
|
@grgia done! |
|
weird, what happened to the tests? |
|
Taking a look at the failing tests |
|
@grgia should be fine now! It was a duplicate identifier, must've been created while merging main |
|
✋ 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/grgia in version: 9.1.32-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.32-8 🚀
|
Explanation of Change
I reaused the same logic that was used in #59660 so I figured it makes sense to have a util function for it. I added it to
PolicyUtils.ts.Fixed Issues
$ #60039
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
Same as Tests section above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
MacOS: Chrome / Safari