Skip to content

test(react-menu): add regression tests for previously fixed issue#36390

Open
PaulGMardling wants to merge 4 commits into
microsoft:masterfrom
PaulGMardling:fix/menuitem-ghost-icon
Open

test(react-menu): add regression tests for previously fixed issue#36390
PaulGMardling wants to merge 4 commits into
microsoft:masterfrom
PaulGMardling:fix/menuitem-ghost-icon

Conversation

@PaulGMardling

Copy link
Copy Markdown
Contributor

Implementation Details

This PR adds regression tests only for issue #30418.

The underlying product behavior was already fixed earlier in PR #33704 (commit 1466381, authored by ling1726 on 2025-01-24).

A later refactor in PR #36234 moved the logic into a separate hook, but did not introduce the fix itself.

These tests ensure split-group submenu triggers do not render ghost alignment icon/checkmark placeholders, so this behavior does not regress again.

Related Issue(s)

#30418

@github-actions

Copy link
Copy Markdown

📊 Bundle size report

✅ No changes found

@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

@@ -5,6 +5,7 @@ import { useMenuItem_unstable } from './useMenuItem';
import { MenuListProvider } from '../../contexts/menuListContext';

@github-actions github-actions Bot Jul 13, 2026

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/CalendarCompat 4 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/CalendarCompat.multiDayView - High Contrast.default.chromium.png 1212 Changed
vr-tests-react-components/CalendarCompat.multiDayView.default.chromium_1.png 486 Changed
vr-tests-react-components/CalendarCompat.multiDayView.default.chromium.png 485 Changed
vr-tests-react-components/CalendarCompat.multiDayView - Dark Mode.default.chromium.png 1097 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default - RTL.submenus open.chromium.png 599 Changed
vr-tests-react-components/Menu Converged - submenuIndicator slotted content.default.submenus open.chromium.png 605 Changed
vr-tests-react-components/Positioning 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Positioning.Positioning end.chromium.png 621 Changed
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png 140 Changed
vr-tests-react-components/ProgressBar converged 3 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - Dark Mode.default.chromium.png 95 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness - High Contrast.default.chromium.png 67 Changed
vr-tests-react-components/ProgressBar converged.Indeterminate + thickness.default.chromium.png 68 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 1 Changed
vr-tests-react-components/TagPicker 3 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/TagPicker.disabled - High Contrast.chromium.png 1319 Changed
vr-tests-react-components/TagPicker.disabled - RTL.chromium.png 635 Changed
vr-tests-react-components/TagPicker.disabled.chromium.png 677 Changed

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

@PaulGMardling
PaulGMardling marked this pull request as ready for review July 13, 2026 14:21
@PaulGMardling
PaulGMardling requested a review from a team as a code owner July 13, 2026 14:21
@PaulGMardling
PaulGMardling force-pushed the fix/menuitem-ghost-icon branch from e62f7d8 to 00a0c4a Compare July 13, 2026 14:29
@PaulGMardling
PaulGMardling force-pushed the fix/menuitem-ghost-icon branch from 00a0c4a to b6042ba Compare July 15, 2026 15:07
Comment thread packages/react-components/react-menu/library/tsconfig.cy.json Outdated
Comment thread change/@fluentui-react-menu-ac7e6b5e-1976-4e85-b31e-1f769b78ff93.json Outdated
Remove the redundant Cypress TypeScript path override and mark the regression-test change file as non-release-impacting.
@PaulGMardling
PaulGMardling requested a review from mainframev July 16, 2026 11:56
@PaulGMardling PaulGMardling self-assigned this Jul 16, 2026
@mainframev mainframev changed the title fix(react-menu): add regression tests for previously fixed issue test(react-menu): add regression tests for previously fixed issue Jul 17, 2026
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.

[Bug]: MenuItem shouldn't render a ghost icon when it is used as the trigger in a MenuSplitGroup

2 participants