Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to run the Compose "UI checks" that studio has #1836

Open
yogurtearl opened this issue Feb 14, 2025 · 1 comment
Open

Add option to run the Compose "UI checks" that studio has #1836

yogurtearl opened this issue Feb 14, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@yogurtearl
Copy link

To better test Compose Accessibility, it would be good if we could run the "Compose UI Checks" that are available in Studio via Compose previews.

Docs are here:
https://developer.android.com/guide/topics/ui/accessibility/testing#compose-ui-check

Context

There is a validateAccessibility option, but seems to do something different? seems to use ATF to check Views (not Compose) ?

@yogurtearl yogurtearl added the enhancement New feature or request label Feb 14, 2025
@colinmarsch
Copy link
Contributor

ATF supports Compose accessibility checks on API 34+ per this issue thread. ATF is also what is used under the hood in Android Studio for the Compose UI checks (also mentioned in that linked comment thread).

I will verify this is the case next week, but I believe with layoutlib version 15.x.x+ that should include the Compose ATF checks and Paparazzi will have inherited that upgrade for free. For reference the layoutlib version at the time of the 1.3.5 Paparazzi release was just 14.0.11 (code link).

A Google issue tracker thread that is relevant here for just some additional context is this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants