Skip to content

Conversation

@ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Jan 9, 2026

This PR fixes a flaky browser-only Tooltip delay test by switching from deprecated TransitionProps to slotProps.transition, removing the unreliable flushMicrotasks step, and asserting the boundary around leaveDelay (still mounted at leaveDelay - 1, then closing at leaveDelay). It then advances the clock slightly past the configured transition timeout to allow the exit transition to fully complete and Popper to set exited, ensuring the tooltip unmounts deterministically.

I ran the CI 7 times after this commit: b44344a and all the run passes.

@ZeeshanTamboli ZeeshanTamboli added the scope: tooltip Changes related to the tooltip. label Jan 9, 2026
@mui-bot
Copy link

mui-bot commented Jan 9, 2026

Netlify deploy preview

https://deploy-preview-47589--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against c38ffc2

@ZeeshanTamboli ZeeshanTamboli changed the title [tooltip] Fix flaky tooltip test [test] Fix flaky tooltip test Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tooltip Changes related to the tooltip. test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants