Add automation IDs and smoke tests for UI tools - #93
Merged
Conversation
Added AutomationProperties.AutomationId to annotation tool buttons in overlay and recording windows. Introduced new automation IDs for settings and recording UI. Enhanced AutomationApp with radio/list selection helpers. Added smoke and interaction tests for annotation tools, recording HUD, and settings navigation to improve UI automation coverage and reliability.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Pull request overview
This PR improves desktop UI automation reliability by introducing stable AutomationProperties.AutomationId values for overlay/recording annotation tools and expanding the automation test harness with new smoke/interaction coverage.
Changes:
- Added
AutomationProperties.AutomationIdto overlay and recording annotation tool buttons. - Extended the automation test harness with additional ID constants and selection helpers.
- Added new desktop automation smoke/interaction tests for settings section navigation, annotation tools, and recording HUD interactions.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| Pointframe/RecordingOverlayWindow.xaml | Adds automation IDs for recording annotation tool radio buttons. |
| Pointframe/OverlayWindow.xaml | Adds automation IDs for overlay annotation tool radio buttons. |
| Pointframe.AutomationTests/Support/AutomationIds.cs | Adds new automation ID constants for settings navigation, overlay tools, and recording HUD/tooling. |
| Pointframe.AutomationTests/Support/AutomationApp.cs | Adds helper methods to select radio buttons and list items in UI automation. |
| Pointframe.AutomationTests/Smoke/SettingsSectionNavigationTests.cs | Adds smoke tests validating settings sidebar navigation + reset/restore actions don’t crash. |
| Pointframe.AutomationTests/Smoke/RecordingHudInteractionTests.cs | Adds interaction tests for pause/resume, HUD minimize/expand, and compact stop. |
| Pointframe.AutomationTests/Smoke/RecordingAnnotationToolSmokeTests.cs | Adds theory-based smoke test to select recording annotation tools. |
| Pointframe.AutomationTests/Smoke/AnnotationToolSmokeTests.cs | Adds theory-based smoke tests to select overlay tools and validate copy/close behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+47
to
+52
| app.ClickButton(AutomationIds.RecordingOverlayWindowMinimizeHud); | ||
|
|
||
| Assert.NotNull(app.FindRequiredElement(AutomationIds.RecordingOverlayWindowHudCompact)); | ||
|
|
||
| app.ClickButton(AutomationIds.RecordingOverlayWindowCompactStop); | ||
| app.WaitForExit(); |
Comment on lines
+66
to
+71
| app.ClickButton(AutomationIds.RecordingOverlayWindowMinimizeHud); | ||
| Assert.NotNull(app.FindRequiredElement(AutomationIds.RecordingOverlayWindowHudCompact)); | ||
|
|
||
| app.ClickButton(AutomationIds.RecordingOverlayWindowExpandHud); | ||
| Assert.NotNull(app.FindRequiredElement(AutomationIds.RecordingOverlayWindowStop)); | ||
|
|
Comment on lines
+87
to
+89
| app.ClickButton(AutomationIds.RecordingOverlayWindowMinimizeHud); | ||
| app.ClickButton(AutomationIds.RecordingOverlayWindowCompactStop); | ||
| app.WaitForExit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added AutomationProperties.AutomationId to annotation tool buttons in overlay and recording windows. Introduced new automation IDs for settings and recording UI. Enhanced AutomationApp with radio/list selection helpers. Added smoke and interaction tests for annotation tools, recording HUD, and settings navigation to improve UI automation coverage and reliability.