Skip to content

DEVPROD-45393: Wait for new distro menu to unmount in tests - #2038

Open
matt-meisinger wants to merge 1 commit into
evergreen-ci:mainfrom
matt-meisinger:fix-menu-unmount-assertions
Open

matt-meisinger wants to merge 1 commit into
evergreen-ci:mainfrom
matt-meisinger:fix-menu-unmount-assertions

Conversation

@matt-meisinger

@matt-meisinger matt-meisinger commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

DEVPROD-XXXX

Description

Fixes a flaky NewDistroButton unit test that failed 3 times in the last month. The current queryByTestId("new-distro-menu").not.toBeVisible() check can throw (received value must be an HTMLElement or an SVGElement) when when the check should just pass (the element has left the DOM just like we wanted it to). The test now waits for the menu to leave the DOM.

Testing

The NewDistroButton.test.tsx unit test passed when run 15 times in quick succession.

@matt-meisinger
matt-meisinger force-pushed the fix-menu-unmount-assertions branch from a376cad to bb36a30 Compare October 16, 2026 18:43
@matt-meisinger
matt-meisinger marked this pull request as ready for review October 16, 2026 19:49
@matt-meisinger
matt-meisinger requested a review from a team as a code owner October 16, 2026 19:49
@pr-issue-creator pr-issue-creator Bot changed the title DEVPROD-XXXX: Wait for new distro menu to unmount in tests DEVPROD-45393: Wait for new distro menu to unmount in tests Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant