Skip to content

ATF skips some Compose elements when AndroidView is present in the same hierarchy #87

@talhakosen

Description

@talhakosen

Description
When using enableAccessibilityChecks() with Compose UI tests, ATF fails to detect
accessibility issues (e.g., TextContrastCheck) on some Compose elements when an
AndroidView is present in the same hierarchy.

Steps to Reproduce

  1. Create a Compose screen with:

    • A Card containing multiple Text elements with low contrast
    • An AndroidView (e.g., custom Chart view)
  2. Run accessibility checks

Expected Behavior
All low-contrast Text elements should be detected.

Actual Behavior
Only some Text elements are detected. Text elements that are siblings of
AndroidView are skipped.

Environment

  • Compose: 1.8.4
  • ATF: 4.1.1
  • API Level: 34+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions