🔧 Expand Test Coverage Across Components, Contexts, and Utilities#106
Merged
cristiantela merged 10 commits intov3-mainfrom May 7, 2026
Merged
🔧 Expand Test Coverage Across Components, Contexts, and Utilities#106cristiantela merged 10 commits intov3-mainfrom
cristiantela merged 10 commits intov3-mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v3-main #106 +/- ##
============================================
+ Coverage 61.94% 72.82% +10.87%
============================================
Files 81 81
Lines 3747 3742 -5
Branches 1024 1000 -24
============================================
+ Hits 2321 2725 +404
+ Misses 1378 987 -391
+ Partials 48 30 -18 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
paulobernardoaf
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Type of Change
Motivation and Context
Several modules and components lacked unit test coverage, making it harder to catch regressions. This PR adds test suites for the areas with the most missing coverage and removes leftover
console.logstatements fromVTEXIOMinicartBridgethat were left over from debugging.Summary of Changes
MessagesList— Extended and added unit tests covering message rendering, scroll behavior, and edge cases.VTEXIOMinicartBridge— Added unit tests for cart merging, image preservation, andupdateVTEXIOMinicartflow. Removed debugconsole.logcalls that leaked internal state messages to the browser console.OrderFormContext— Added unit tests for context state, order form lifecycle, and cart sync logic.Dropdown— Added unit tests covering open/close behavior, placement classes,renderTrigger, outside-click dismissal, Escape key handling, and ARIA attributes.Tooltip— Added unit tests covering hover/focus visibility,disabledprop, preserved child event handlers, andaria-describedbylinking.useVtexCxVisualViewportCssVars— Added unit tests forsyncVtexCxVisualViewportCssVars(bothvisualViewportand fallback paths), listener registration, cleanup on unmount, andactivetoggling.CounterControls— Added unit tests covering counter increment/decrement,hideWhenNotInteractedvisibility logic,uuidparsing, add-to-cart FSButton rendering, and async cart addition flow.