Skip to content
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

Find/replace UI tests: unify focus validation #2356

Merged

Conversation

HeikoKlare
Copy link
Contributor

The find/replace UI tests currently validate for proper focus only in specific situations, usually restricted to when running on GTK. On the one hand, this makes debugging more difficult in case the focus was not properly set in the beginning, e.g., because the workbench window was not active when the test started. On the other hand, it makes the test execution more prone to be indeterministic and platform-specific, as GTK-specific code is involved.

This change provides three improvements to mitigate these issues:

  • It ensures that the workbench window is active when test execution starts
  • It validates that the find/replace UI (overlay/dialog) has focus every time it is opened during test execution
  • It gets rid of GTK-specific focus validation

Issues were investigated in the context of #2254 and this also serves as a preparation for that PR.

@HeikoKlare HeikoKlare marked this pull request as ready for review October 3, 2024 12:00
Copy link
Contributor

github-actions bot commented Oct 3, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 40m 57s ⏱️ + 2m 38s
 7 704 tests ±0   7 476 ✅ ±0  228 💤 ±0  0 ❌ ±0 
24 273 runs  ±0  23 526 ✅ ±0  747 💤 ±0  0 ❌ ±0 

Results for commit 7d10914. ± Comparison against base commit e37086d.

♻️ This comment has been updated with latest results.

The find/replace UI tests currently validate for proper focus only in
specific situations, usually restricted to when running on GTK. On the
one hand, this makes debugging more difficult in case the focus was not
properly set in the beginning, e.g., because the workbench window was
not active when the test started. On the other hand, it makes the test
execution more prone to be indeterministic and platform-specific, as
GTK-specific code is involved.

This change provides three improvements to mitigate these issues:
- It ensures that the workbench window is active when test execution
starts
- It validates that the find/replace UI (overlay/dialog) has focus every
time it is opened during test execution
- It gets rid of GTK-specific focus validation
@HeikoKlare HeikoKlare merged commit c777660 into eclipse-platform:master Oct 3, 2024
17 checks passed
@HeikoKlare HeikoKlare deleted the findreplace-validate-focus branch October 3, 2024 13:40
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