[NoQA] Add tests for switch to Expensify classic flow#52754
[NoQA] Add tests for switch to Expensify classic flow#52754mountiny merged 13 commits intoExpensify:mainfrom
Conversation
|
@hungvu193 how is this going? |
|
Still stuck on the second test, I will raise a slack convo to get some helps. |
|
Oh weird. I think you can ignore this PR @Ollyws, I'm not sure why you're assigned, @shubham1206agra is the C+ on the linked issue, he will handle this one. Ty |
|
@mountiny I don't think this test is helpful since it creates a function and tests the same function. |
|
My initial tests were:
However while debugging the tests, the logic inside action of |
@hungvu193 Can you check if action was mocked anywhere? |
I don't think I mocked |
|
Updated the tests @shubham1206agra. |
|
@hungvu193 Can you add this test to test suite so it will run in CI? |
|
@hungvu193 Is there a reason why test takes 50 sec to run? |
How to do that? Sorry I'm new with this one.
Mine takes 4.5 seconds to run both tests. I think every test case needs to re-render and login the App (also wait for Onyx data..etc) it probably takes longer based on our connection?
|
Sorry, I got confused. Can you put this test under ui folder since test is related to UI?
Yeah, my system nows shows 5 sec to run the test. |
Done 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
mountiny
left a comment
There was a problem hiding this comment.
Code looks good to me but its not clear to me why the test is name this way?
There was a problem hiding this comment.
Is this a correct file name?
Do you have any suggestions? I was about to name it "SwitchToExpensifyClassicFlow" but then I changed my mind cause I think in the future we might add more tests to this file whenever we added new logic into InitialSettingPage. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 9.0.67-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.67-9 🚀
|


Explanation of Change
Add tests for recently added logic:
Fixed Issues
$ #51703
PROPOSAL: N/A
Tests
Offline tests
N/A
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
No QA
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
Android: Native
Screen.Recording.2024-11-22.at.13.52.01.mov
Android: mWeb Chrome
Screen.Recording.2024-11-22.at.13.52.01.mov
iOS: Native
Screen.Recording.2024-11-22.at.13.52.01.mov
iOS: mWeb Safari
Screen.Recording.2024-11-22.at.13.52.01.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-22.at.13.52.01.mov
MacOS: Desktop
Screen.Recording.2024-11-22.at.13.52.01.mov