Skip to content

Add automation IDs and smoke tests for UI tools - #93

Merged
dimitar-radenkov merged 3 commits into
masterfrom
feature/expand-automation-smoke-tests
May 3, 2026
Merged

Add automation IDs and smoke tests for UI tools#93
dimitar-radenkov merged 3 commits into
masterfrom
feature/expand-automation-smoke-tests

Conversation

@dimitar-radenkov

Copy link
Copy Markdown
Owner

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.

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.
Copilot AI review requested due to automatic review settings May 3, 2026 03:57
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.AutomationId to 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();
@dimitar-radenkov
dimitar-radenkov merged commit ca6b76d into master May 3, 2026
5 checks passed
@dimitar-radenkov
dimitar-radenkov deleted the feature/expand-automation-smoke-tests branch May 3, 2026 04:12
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.

3 participants