[No QA]: Add test to reauthenticate offline user#51805
[No QA]: Add test to reauthenticate offline user#51805madmax330 merged 2 commits intoExpensify:mainfrom
Conversation
|
@allgandalf 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] |
| }); | ||
|
|
||
| describe('NetworkTests', () => { | ||
| test('failing to reauthenticate while offline should not log out user', () => { |
There was a problem hiding this comment.
Removed this part of the description because this test doesn't turn off the network
There was a problem hiding this comment.
okay so this happens when the user is online, cool no problem with the change
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
tests/unit/NetworkTest.ts
Outdated
| jsonCode: CONST.JSON_CODE.NOT_AUTHENTICATED, | ||
| }), | ||
| ) | ||
| // // Call Authenticate |
There was a problem hiding this comment.
| // // Call Authenticate | |
| // Call Authenticate |
tests/unit/NetworkTest.ts
Outdated
| authToken: 'newAuthToken', | ||
| }), | ||
| ) | ||
| // // Call ReconnectApp again, it should connect with a new token |
There was a problem hiding this comment.
| // // Call ReconnectApp again, it should connect with a new token | |
| // Call ReconnectApp again, it should connect with a new token |
|
@zirgulis can you mark the title as : [No QA]: Add test to reauthenticate offline user |
allgandalf
left a comment
There was a problem hiding this comment.
I approve this new unit test.
To anyone who checks this change in future take a look at this thread, for starters we have added a test to simulate the failing to reauthenticate while offline should not log out user.
|
🚀 Deployed to staging by https://github.com/madmax330 in version: 9.0.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.58-2 🚀
|
Explanation of Change
Fixed Issues
$ #51185
PROPOSAL:
Tests
Offline tests
QA Steps
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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop