Skip to content

Fix NativeMenuBar tooltip #15505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 25, 2024
Merged

Fix NativeMenuBar tooltip #15505

merged 4 commits into from
Apr 25, 2024

Conversation

maxkatz6
Copy link
Member

What does the pull request do?

This ToolTip binding was initially implemented e0c6e11#diff-be87dacae55b7a692260605dbb473e14db722954af3adaaee4ccc323d4902603R15, but lost in following NativeMenuBar refactoring. Which resulted in a flaky test, that was only passing because there was another node with expected text.

This PR:

  1. Fixes NativeMenuItem.ToolTip combined with NativeMenuBar.
  2. Makes NativeMenuItem.ToolTip tests more reliable.

@maxkatz6 maxkatz6 added bug backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Apr 25, 2024
@maxkatz6 maxkatz6 merged commit eace889 into master Apr 25, 2024
@maxkatz6 maxkatz6 deleted the fix-nativemenubar-tooltip branch April 25, 2024 06:12
maxkatz6 added a commit that referenced this pull request Apr 25, 2024
* Fix native menu bar tooltip

* Make ToolTip tests more reliable

* Increase MacOS_Native_Menu_Has_ToolTip_If_Defined sleep delay

* Disable MacOS_Native_Menu_Has_ToolTip_If_Defined, as it fails way too often
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0047707-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added backported-11.1.x and removed backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels May 8, 2024
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.

2 participants