fix: component view test in main #25428
Merged
+16
−15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
MusdConversionAssetOverviewCta: Align text assertions with current i18n (boost_title / boost_description); use MUSD_CONVERSION_APY and drop redundant getByText('mUSD').
EarnMusdConversionEducationView: Match description via regex (description is rendered with " Terms apply." in the same Text); assert APY percentage on children[0] instead of children.
Changelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk: changes are limited to component-view test assertions and how text is matched/inspected, with no production logic modifications.
Overview
Updates mUSD conversion component-view tests to match the current rendered copy and i18n behavior.
The education view tests now match the description via regex (to tolerate the appended “Terms apply.” text) and adjust APY assertions to check the first child node. The asset overview CTA tests switch to asserting the new
boost_title/boost_descriptionstrings usingMUSD_CONVERSION_APY, and remove redundant checks for a separatemUSDtext node.Written by Cursor Bugbot for commit 03c42f6. This will update automatically on new commits. Configure here.