Skip to content

feat(android): add accessibility xpath audit core - #2876

Closed
quanruzhuoxiu wants to merge 2 commits into
fix/cache-xpath-replayfrom
feat/android-xpath-audit-core
Closed

feat(android): add accessibility xpath audit core#2876
quanruzhuoxiu wants to merge 2 commits into
fix/cache-xpath-replayfrom
feat/android-xpath-audit-core

Conversation

@quanruzhuoxiu

@quanruzhuoxiu quanruzhuoxiu commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • expose a production-consistent Android Accessibility snapshot with raw XML, normalized UiNode tree, source, timing, DPR, rotation, and logical size
  • add shared tree enumeration, structural XPath diagnostics, production cache candidate inspection, fresh/revisit replay, and minimal semantic overlay selection
  • share Android audit metadata and schema definitions between CLI and Playground consumers

Stack

Part 1 of 3.

  • base: fix/cache-xpath-replay
  • next: feat/android-xpath-audit-cli

This PR does not change the production XPath candidate policy.

Validation

  • pnpm exec nx build @midscene/android --skip-nx-cache
  • pnpm exec nx test @midscene/android --skip-nx-cache -- tests/unit-test/page.test.ts tests/unit-test/audit-metadata.test.ts tests/unit-test/xpath-audit.test.ts tests/unit-test/cache-compatibility.test.ts
  • pnpm run lint

The focused suite passed 226 tests. Vitest 3 rejects the originally suggested Jest-only --runInBand option, so the successful command omits it.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying midscene with  Cloudflare Pages  Cloudflare Pages

Latest commit: 269208b
Status: ✅  Deploy successful!
Preview URL: https://da282083.midscene.pages.dev
Branch Preview URL: https://feat-android-xpath-audit-cor.midscene.pages.dev

View logs

@quanruzhuoxiu

Copy link
Copy Markdown
Collaborator Author

Superseded by #2891. 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