Skip to content

feat(skills): verify uno-testing through the accessibility tree, including Release builds - #162

Merged
kazo0 merged 3 commits into
mainfrom
feat/uno-testing-a11y-tree
Sep 30, 2026
Merged

kazo0 merged 3 commits into
mainfrom
feat/uno-testing-a11y-tree

Conversation

@kazo0

@kazo0 kazo0 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): Part of #160

PR Type

  • Feature
  • Documentation content changes

What is the current behavior?

uno-testing only covers the Uno App MCP, which reaches Debug builds through the DevServer (the DevServer package is not allowed in optimized builds, UNOB0019). When an agent has to verify a Release build, or the App MCP is not connected, the skill gives no guidance, and agents fall back to coordinate clicks and screenshots read back into context (61 screenshot reads during verification in the FieldCheck run described in #160).

What is the new behavior?

  • uno-testing/SKILL.md
    • New critical rule, Accessibility first, on every path: locate, act and assert through the element tree; a screenshot is a visual assertion or evidence.
    • Verify on a Debug build with the App MCP; use a Release build only when the task requires one, and then through the accessibility tree.
    • Screenshots are saved to files (before and after) and read back only for visual assertions; the baseline and final-state steps save them with path.
    • The naming rule asks for AutomationProperties.AutomationId and a readable, page-unique AutomationProperties.Name on every control a test touches, with what each platform shows.
    • When the App MCP stays unavailable, the prerequisite routes to the new reference before falling back to static review.
  • New uno-testing/references/without-app-mcp.md (~1.2k tokens): what each target exposes, a PowerShell 7 UI Automation recipe for Windows (no install), the uiautomator loop for Android, and the pitfalls found while testing.
  • uno-platform/SKILL.md: the router no longer says uno-testing requires the App MCP.
  • Mirrored into skills/.

Verified

Release build of a recommended-preset app (Uno.Sdk 6.8.0-dev.51, Skia renderer), IsUiAutomationMappingEnabled not set:

Windows (net10.0-desktop), UI Automation Android (Skia), uiautomator dump
AutomationProperties.Name (or content text) Name content-desc
AutomationProperties.AutomationId AutomationId (x:Name when no ID is set) not exposed, also with IsUiAutomationMappingEnabled=true (unoplatform/uno#23934)
Act Invoke, Value.SetValue, Toggle tap the centre of bounds (physical px), input text
Assert TextBlock text as Name, ToggleState, IsEnabled re-dump: content-desc text, checked; EditText text stays empty

macOS (Skia) does not expose its tree to AX clients (unoplatform/uno#24669); iOS, WebAssembly and Linux were not tested and stay on the App MCP.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

Additional Information

#160 stays open: its last task, a FieldCheck re-run comparing verification calls, screenshot reads and cost at core_complete against the numbers in the issue, is queued separately.

Test-Plugin.ps1, claude plugin validate --strict and agentskills validate pass locally.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KgZpA38RdNwvQACvcjLp8z

kazo0 and others added 3 commits September 30, 2026 15:57
…e builds

uno-testing only covered the App MCP, which reaches Debug builds through the
DevServer. For Release builds, CI and devices the DevServer does not reach,
agents fell back to coordinate clicks and screenshots read back into context.

- SKILL.md: an "accessibility first" critical rule on every path; verify on
  Debug with the App MCP and use Release only when the task requires it;
  screenshots are saved to files and read back only for visual assertions;
  the naming rule covers AutomationId and Name per platform.
- references/without-app-mcp.md: Windows UI Automation (PowerShell 7, no
  install) and Android uiautomator recipes to find, act and assert.
- uno-platform router: uno-testing no longer requires the App MCP.

Checked on a Release build of a recommended-preset app (Uno.Sdk 6.8, Skia):
UI Automation exposes AutomationId (x:Name as fallback) and Name, and
Invoke/Value/Toggle work; uiautomator exposes Name as content-desc but not
AutomationId, even with IsUiAutomationMappingEnabled (unoplatform/uno#23934).

Part of #160

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KgZpA38RdNwvQACvcjLp8z
…ations

In a FieldCheck re-run the agent followed the new reference but re-ran its
whole end-to-end drivers after every fix (36 runs, 6-7 minutes each on
Android) and rebuilt the Android Release app 7 times: verification took
82 minutes against 17-25 for comparable runs. uiautomator also could not
dump while an indeterminate ProgressRing animated.

- Re-run only the checks for the flow a fix touched; one full pass at the end.
- A dump waits for an idle UI: retry once it settles, and assert a loading
  state from timed frames checked in the script, not read back.

Part of #160

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KgZpA38RdNwvQACvcjLp8z
In one Sonnet FieldCheck run, the agent read "Also covers Release builds
without the App MCP, through Windows UI Automation or Android uiautomator",
treated that as enough, and never loaded the skill. It then verified the
Release build with coordinate clicks and screenshots. The description now
asks for the skill to be loaded before verifying a Release build, and no
longer names the method. This rests on a single run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KgZpA38RdNwvQACvcjLp8z
@kazo0 kazo0 changed the title feat(uno-testing): verify through the accessibility tree, including Release builds feat(skills): verify uno-testing through the accessibility tree, including Release builds Sep 30, 2026
@kazo0
kazo0 force-pushed the feat/uno-testing-a11y-tree branch 2 times, most recently from c46790b to 77b4cfa Compare September 30, 2026 19:57
@kazo0
kazo0 merged commit 6874bb4 into main Sep 30, 2026
4 checks passed
@kazo0
kazo0 deleted the feat/uno-testing-a11y-tree branch September 30, 2026 20:00
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