Skip to content

test(react-tag-picker): add hooks regression tests#36269

Open
mainframev wants to merge 1 commit into
microsoft:masterfrom
mainframev:test/tag-picker-hook-regression-tests
Open

test(react-tag-picker): add hooks regression tests#36269
mainframev wants to merge 1 commit into
microsoft:masterfrom
mainframev:test/tag-picker-hook-regression-tests

Conversation

@mainframev
Copy link
Copy Markdown
Contributor

Adds hook-level regression tests that lock down the existing runtime behavior of the four hooks being refactored in #36260, so the base-hook extraction can be verified to be behavior-preserving:

  • useTagPicker — default size/inline/noPopover, explicit prop overrides, generated popoverId, popover visibility gated on open state, controlled
    selectedOptions.
  • useTagPickerControl — internal aside slot, expandIcon shown by default / hidden with noPopover, aria-expanded and aria-owns wiring, context
    inheritance (size/appearance/disabled), secondaryAction slot, mousedown short-circuit for unrelated targets.
  • useTagPickerInput — type="text", context inheritance, aria-controls gating, Space/Enter open-toggle, ArrowLeft/Backspace focus-into-group, user
    onKeyDown forwarding.
  • useTagPickerButton — default button type, size inheritance, hasSelectedOption derivation, aria-controls gating, value/placeholder children.

@mainframev mainframev self-assigned this May 29, 2026
@mainframev mainframev requested a review from a team as a code owner May 29, 2026 15:12
@github-actions
Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions
Copy link
Copy Markdown

Pull request demo site: URL

@@ -0,0 +1,7 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-react-components/Charts-DonutChart 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Charts-DonutChart.Dynamic - RTL.default.chromium.png 33448 Changed
vr-tests-react-components/Charts-DonutChart.Dynamic - Dark Mode.default.chromium.png 16957 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default - RTL.submenus open.chromium.png 404 Changed
vr-tests-react-components/Positioning 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Positioning.Positioning end.chromium.png 966 Changed
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png 975 Changed
vr-tests-react-components/ProgressBar converged 3 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - High Contrast.default.chromium.png 109 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness.default.chromium.png 134 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - Dark Mode.default.chromium.png 25 Changed
vr-tests-react-components/Skeleton converged 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Skeleton converged.Opaque Skeleton with square - Dark Mode.default.chromium.png 2 Changed
vr-tests-react-components/TagPicker 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/TagPicker.disabled - High Contrast.disabled input hover.chromium.png 1319 Changed

There were 1 duplicate changes discarded. Check the build logs for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant