Repository navigation
feat: add Accessibility Insights CI tests using Axe.Windows - #923
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 9:31 PM ET / 01:31 UTC. Summary Reproducibility: yes. from source inspection: the workflow summary only checks the step outcome and always calls failures WCAG violations, while the new fixture has several pre-scan failure paths. I did not run the Windows-only UI tests in this read-only review. Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Land a blocking real-process Axe.Windows lane only after the failure summary separates harness failures from WCAG violations and the PR body includes current-head scan output from CI or a local Windows run. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: the workflow summary only checks the step outcome and always calls failures WCAG violations, while the new fixture has several pre-scan failure paths. I did not run the Windows-only UI tests in this read-only review. Is this the best way to solve the issue? No, not yet: the real-process blocking scan direction is maintainable, but the CI summary and proof package need to show whether failures are harness errors or actual Axe findings. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6045c2d00e1f. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (1 earlier review cycle)
|
|
Hi Karen — bot review with Scott's maintainer feedback included. This is another good direction: automated accessibility scans would be valuable. The current PR cannot merge yet because the CI step is not producing useful accessibility signal. The key issue: the new accessibility step is failing, but CI stays green because of Other issues to fix while repairing the harness:
Bot-ready repair prompt you can give your coding agent: This would be a great CI improvement once the harness produces real signal. Right now, though, the green check is misleading because the new tests are failing underneath it. |
Implements automated accessibility scanning modeled after the WinUI-Gallery pattern. Each app page is instantiated in the UIThreadFixture's hidden window and scanned via Axe.Windows.Automation against the live UIA tree for WCAG violations. Components added: - AxeHelper.cs: Wraps Axe.Windows scanner with global exclusions for known WinUI framework bugs (same set as WinUI-Gallery) and per-page exclusion support. Error output includes ControlType, Name, and AutomationId for actionable remediation. - AccessibilityScanTests.cs: Data-driven xUnit Theory that scans all 17 app pages. New pages are picked up by adding to PageTestData(). ChatPage is excluded (WebView2/CefSharp UIA tree crashes Axe). CI integration (.github/workflows/ci.yml): - Existing UI tests now exclude Category=Accessibility to avoid blocking on known violations while the team remediates (PR openclaw#921). - Dedicated 'Run Accessibility Tests (Axe.Windows)' step with continue-on-error: true surfaces violations as a visible warning in the GitHub Actions summary without blocking merges. - Step summary reports pass/fail with link to PR openclaw#921 for fixes. The tests will initially fail until PR openclaw#921 (accessibility fixes) lands. Remove continue-on-error once all violations are resolved. Co-authored-by: Copilot App <[email protected]>
86570be to
470ed9b
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Summary
Add a blocking Windows accessibility gate that launches the real
OpenClaw.Tray.WinUI.exeprocess and scans all 18 native pages with Axe.Windows, including the FunctionalUI Chat timeline and composer.Thanks @karkarl for the initial Axe integration.
What changed
OPENCLAW_TRAY_DATA_DIR; use the real single-instance IPC path for page navigation.always().ConfigPageexclusion for the inaccessible CommunityToolkit internalSizerBasepeer. The public splitter peer is named and exposed correctly.Why the original green run was insufficient
The original workflow run was green only because its accessibility step used
continue-on-error. Its test job had all 17 scans fail during synthetic in-process page construction withXamlParseException; Chat was excluded. This revision removes the soft-fail path and exercises the actual app process.Validation
Current-head Windows 11 ARM64 Parallels VM:
dotnet build tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-arm64 --no-restore: 0 warnings, 0 errors.ChatComposerInputinside the mounted FunctionalUI composer.build.ps1: Shared 2691 passed / 31 skipped; Tray 1532 passed; all projects built successfully.Review
AutoReview identified two valid gaps in the initial rewrite: native Chat coverage and positive proof that each deep link reached its target. Both were fixed. A later pass caught that Chat still rendered only its disconnected placeholder; the deterministic provider and real composer marker fixed that. Final review after validation and localization corrections: no accepted or actionable findings.