Skip to content

feat(android): add accessibility xpath audit CLI and report - #2877

Closed
quanruzhuoxiu wants to merge 3 commits into
feat/android-xpath-audit-corefrom
feat/android-xpath-audit-cli
Closed

feat(android): add accessibility xpath audit CLI and report#2877
quanruzhuoxiu wants to merge 3 commits into
feat/android-xpath-audit-corefrom
feat/android-xpath-audit-cli

Conversation

@quanruzhuoxiu

Copy link
Copy Markdown
Collaborator

Summary

  • add a TypeScript CLI for source, fresh, and revisit Android Accessibility captures
  • preserve screenshots, the raw XML actually used for XPath generation, the complete normalized UiNode tree, per-node diagnostics, visual inventory, and replay results
  • generate per-page annotated HTML plus run-level summary and index reports
  • keep unexposed visual controls in the audit denominator through a human-reviewed visual inventory

Stack

Part 2 of 3.

The CLI defaults to Accessibility capture and does not require CDP. Raw device artifacts remain under the ignored midscene_run/ directory.

Validation

  • pnpm exec nx build @midscene/android --skip-nx-cache
  • pnpm exec nx test @midscene/android --skip-nx-cache -- tests/unit-test/accessibility-xpath-audit.test.ts tests/unit-test/cache-compatibility.test.ts
  • pnpm exec tsx packages/android/scripts/accessibility-xpath-audit.ts --help
  • pnpm run lint

The focused suite passed 18 tests.

@quanruzhuoxiu

Copy link
Copy Markdown
Collaborator Author

Superseded by #2892. The replacement stack is self-contained from main and preserves the same review layer.

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