Skip to content

Find/replace overlay: add test for proper shortcut hints#4193

Merged
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-shortcut-hint-tests
Jul 19, 2026
Merged

Find/replace overlay: add test for proper shortcut hints#4193
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-shortcut-hint-tests

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

Motivation

#4185 fixed the search/replace bars' buttons showing shortcut-hint tooltips for actions that weren't actually reachable via that shortcut at the time — e.g. both the "search forward" and "replace" buttons showed the same "Enter" hint regardless of which input field had focus, since only one of them is actually bound to Enter depending on context.

That fix had no dedicated regression test. This adds one.

What the test covers

Verifies that a button's shortcut-hint tooltip is only shown while its action is actually reachable via that shortcut — i.e. it appears when the corresponding input field (search or replace) has focus, and disappears again once focus moves elsewhere.


This PR description and the test were generated with the help of Claude Code.

Add regression coverage for the recent fix on the search/replace bars'
buttons only showing their shortcut-hint tooltip suffix while the
corresponding input field actually has focus, rather than always
showing hints for actions that are not currently reachable via that
shortcut.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   55m 59s ⏱️ - 9m 49s
 8 120 tests +1   7 877 ✅ +1  243 💤 ±0  0 ❌ ±0 
20 262 runs  +3  19 608 ✅ +3  654 💤 ±0  0 ❌ ±0 

Results for commit 22dc7de. ± Comparison against base commit c3e5d57.

@HeikoKlare
HeikoKlare marked this pull request as ready for review July 19, 2026 08:20
@HeikoKlare
HeikoKlare merged commit 0fcade6 into eclipse-platform:master Jul 19, 2026
18 checks passed
@HeikoKlare
HeikoKlare deleted the findreplace-overlay-shortcut-hint-tests branch July 19, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant