[#92558] Close Test Tools modal when launching biometrics MFA flow#93557
Conversation
…A flow The biometrics Test button only called executeScenario(), which opens the MFA "Let's verify it's you" overlay as a sibling of the root navigator driven by isModalOpen state. On iOS the Test Tools transparent modal stayed presented on top, so the menu never closed (the verify page was hidden behind it). Register TEST_TOOLS_MODAL_NAVIGATOR in MODAL_ROUTES_TO_DISMISS and call Navigation.dismissModal() from the biometrics Test button before executeScenario. The call is guarded by the active-route check so it is a no-op when TestToolMenu is rendered inline on the Troubleshoot page.
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
@oqildev could your please provide the record for ios native platform? |
| // overlay isn't hidden behind it on iOS. When rendered inline on the Troubleshoot page there is no | ||
| // modal on top, so this is a no-op and we don't accidentally open one. | ||
| if (Navigation.getActiveRoute().includes(ROUTES.TEST_TOOLS_MODAL.route)) { | ||
| Navigation.dismissModal(); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
I added one more video next to it. The format doesn't seem to be compatible. Could you please check |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppCleanShot.2026-06-15.at.22.07.05.4.mp4Android: mWeb ChromeCleanShot.2026-06-15.at.22.08.56.5.mp4iOS: HybridAppCleanShot.2026-06-15.at.21.58.10.3.mp4iOS: mWeb SafariCleanShot.2026-06-15.at.21.57.27.2.mp4MacOS: Chrome / SafariCleanShot.2026-06-15.at.21.56.25.1.mp4 |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
🚧 @chuckdries has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|


The biometrics Test button only called executeScenario(), which opens the MFA "Let's verify it's you" overlay as a sibling of the root navigator driven by isModalOpen state. On iOS the Test Tools transparent modal stayed presented on top, so the menu never closed (the verify page was hidden behind it).
Register TEST_TOOLS_MODAL_NAVIGATOR in MODAL_ROUTES_TO_DISMISS and call Navigation.dismissModal() from the biometrics Test button before executeScenario. The call is guarded by the active-route check so it is a no-op when TestToolMenu is rendered inline on the Troubleshoot page.
Explanation of Change
On iOS, tapping Test on the Biometrics row of the hidden Test Tool menu did not close the menu, so the "Let's verify it's you" verification page stayed hidden behind it.
BiometricsTestToolRowonly calledexecuteScenario(BIOMETRICS_TEST), which opens the MFA flow as a state-driven (isModalOpen) overlay rendered as a sibling of the root navigator — it never dismissed the Test Tools modal. On iOS the Test ToolstransparentModalis a native view controller that stays on top, so the menu never closed.Fix:
NAVIGATORS.TEST_TOOLS_MODAL_NAVIGATORinMODAL_ROUTES_TO_DISMISSso the existingDISMISS_MODALhandler treats it as a dismissable modal.Testbutton, callNavigation.dismissModal()beforeexecuteScenario(...), guarded by the active-route check so it is a no-op whenTestToolMenuis rendered inline on the Troubleshoot page.Fixed Issues
$ #92558
PROPOSAL: #92558 (comment)
Tests
/test-toolsor press Cmd/Ctrl+D).Offline tests
N/A — pure local navigation (no API/Onyx writes); behavior is identical offline.
QA Steps
Same as Tests.
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))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.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
2026-06-14.18.27.57.mov
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
2026-06-15.11.56.21.video-converter.com.mp4
2026-06-15.11.56.21.mp4
iOS: mWeb Safari
ios.mweb.MOV
MacOS: Chrome / Safari
2026-06-14.18.49.06.mp4