Remove the Expensify 2FA requirement from NetSuite OAuth setup - #101452
yuwenmemon wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@mjasikowski 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] |
| mockRequire2FAProps.current = {isVisible, onSubmit, onCancel}; | ||
| return isVisible ? <MockView testID="require-2fa-modal" /> : null; | ||
| }); | ||
| jest.mock('@components/RequireTwoFactorAuthenticationModal', () => () => <MockView testID="require-2fa-modal" />); |
There was a problem hiding this comment.
This is no longer needed, right?
| beforeEach(() => { | ||
| setBetaEnabled(true); | ||
| set2FAEnabled(true); | ||
| set2FAEnabled(is2FAEnabled); |
There was a problem hiding this comment.
Do we even need to have the tests for 2FA on and off ? Maybe we can just leave the 2FA state to its default (like we do for other integrations except Xero I think) ?
trjExpensify
left a comment
There was a problem hiding this comment.
Makes sense. The Xero thing is forced upon us as a partner. 👍
@akinwale or @ShridharGoel please review
Explanation of Change
This was my bad. Netsuite OAuth should not require 2FA. It was a pattern I copied over from Xero that I should not have.
Fixed Issues
$ #101408
Tests
All four NetSuite unit suites pass (26 tests); lint, spelling, TypeScript, and React Compiler checks pass. Manual browser and device QA has not been run.
netSuiteOAuthbeta for a workspace admin with Expensify 2FA disabled.Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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