[No QA] Fix failing tests on main from the Submit welcome modal merge race - #96064
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
🚧 iwiznia has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/iwiznia in version: 9.4.35-1 🚀
|
|
🤖 I reviewed this PR against the help site articles under Why: This is a test-only / internal fix with no user-facing behavior change (the PR itself is labeled
Neither touches a documented feature, setting, tab, or workflow, so there is nothing to update on the help site. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.4.35-6 🚀
|
Explanation of Change
Main is red with two test failures that landed via crossing PRs, each green on its own:
nvp_submitMigrationModalShownwithout assigning it to an export bucket, so theExportOnyxStateTest.tscoverage check fails. The key only holds a boolean shown-flag, so it belongs insafeOnyxKeys.FormAlertWithSubmitButtonbuttons #92498 madeFormAlertWithSubmitButtoncallusePressLoading(which needs navigation context and defersonSubmitby a macrotask), breaking all threeSubmitPlanWelcomeModalTest.tsxcases from [Submit] In-product modal for existing "Get paid back" intent users (Wave 4) #95099.Changes:
safeOnyxKeys, in alphabetical orderuseFocusEffectin the modal testwaitForFixed Issues
$ https://github.com/Expensify/App/actions/runs/29330283944/job/87094753265
$ https://github.com/Expensify/App/actions/runs/29330283944/job/87094753198
PROPOSAL:
Tests
npx jest tests/unit/ExportOnyxStateTest.ts tests/ui/components/SubmitPlanWelcomeModalTest.tsxOffline tests
N/A, test-only change plus export-key bucketing, no runtime behavior change.
QA Steps
N/A, no user-facing change.
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