fix: Onboarding - Onboarding tasks in #admins room are grayed out in offline mode.#60973
Conversation
…offline mode. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
Will upload the recordings in the morning. |
|
@jayeshmangwani 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid.mp4Android: mWeb Chromemweb-chrome.moviOS: HybridAppiOS.moviOS: mWeb Safarimweb-safari.movMacOS: Chrome / Safariweb.movMacOS: Desktopdesktop.mov |
|
@Krishna2323 Can we add a test for the |
|
@Krishna2323 bump for the above comment |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@jayeshmangwani, test added. |
tests/unit/onboardingApiTest.ts
Outdated
| import waitForBatchedUpdates from '../utils/waitForBatchedUpdates'; | ||
|
|
||
| const ESH_EMAIL = 'eshgupta1217@gmail.com'; | ||
| const ESH_ACCOUNT_ID = 1; |
There was a problem hiding this comment.
@Krishna2323 Either you've used your own details here instead of another contributor's, or you can use a placeholder like TEST_USER_ACCOUNT_ID.
There was a problem hiding this comment.
Instead of creating a new test file named onboardingApiTest, what do you think about adding the test directly under tests/actions/ReportTest.ts, since we're only testing completeOnboarding as part of the Report actions?
There was a problem hiding this comment.
Yes, agreed. I have added the completeOnboarding test inside tests/actions/ReportTest.ts and removed the file onboardingApiTest.
tests/unit/onboardingApiTest.ts
Outdated
|
|
||
| const adminsChatReportID = '7957055873634067'; | ||
| const onboardingPolicyID = 'A70D00C752416807'; | ||
|
|
There was a problem hiding this comment.
| const engagementChoice = CONST.INTRO_CHOICES.MANAGE_TEAM; | |
| Report.completeOnboarding({ | |
| engagementChoice, | |
| onboardingMessage: CONST.ONBOARDING_MESSAGES[engagementChoice], | |
| adminsChatReportID, | |
| onboardingPolicyID, | |
| companySize: CONST.ONBOARDING_COMPANY_SIZE.MICRO, | |
| userReportedIntegration: null, | |
| }); |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
tests/actions/ReportTest.ts
Outdated
|
|
||
| Report.completeOnboarding({ | ||
| engagementChoice, | ||
| onboardingMessage: CONST.ONBOARDING_MESSAGES.newDotManageTeam, |
There was a problem hiding this comment.
| onboardingMessage: CONST.ONBOARDING_MESSAGES.newDotManageTeam, | |
| onboardingMessage: CONST.ONBOARDING_MESSAGES[engagementChoice], |
tests/actions/ReportTest.ts
Outdated
| onboardingMessage: CONST.ONBOARDING_MESSAGES.newDotManageTeam, | ||
| adminsChatReportID, | ||
| onboardingPolicyID, | ||
| companySize: '1-10', |
There was a problem hiding this comment.
| companySize: '1-10', | |
| companySize: CONST.ONBOARDING_COMPANY_SIZE.MICRO, |
There was a problem hiding this comment.
sorry for overlooking. Updated.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@Krishna2323 Please merge main and push the changes to resolve the failing Tests. |
|
@Krishna2323 You might need to pull main to update the unit tests. |
|
✋ 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/yuwenmemon in version: 9.1.42-0 🚀
|
|
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 9.1.43-5 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.44-8 🚀
|
Explanation of Change
Fixed Issues
$ #60833
PROPOSAL: #60833 (comment)
Tests
Here is a task list I’d recommend for a company of your sizeis not greyed outWe can explore more features suchis not greyed outOffline tests
Internet connection is required
QA Steps
Here is a task list I’d recommend for a company of your sizeis not greyed outWe can explore more features suchis not greyed outPR 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
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4