Comments (7)
When ATF is used within an Espresso test, it is not possible for it to inspect Compose content from using the currently released versions. However, API 34 adds new functionality that will make this feasible.
from accessibility-test-framework-for-android.
Wanted to follow up here asking what is the scope of work to enable support for ATF?
It has been a big blocker for us at Airbnb to enable accessibility checks for our Jetpack Compose components and would love to find a solution if possible.
from accessibility-test-framework-for-android.
+1 on this. I can only run these checks on a Jetpack Compose rootView. But when I run it, I only get suggestions for the rootView of the screen and it does not go through all the child Composables like it would on a view based application.
But, I see that the "Accessibility Scanner" app somehow gives me correct results on Compose screens as well.
Could you please give some guidance on how to run the checks in the repo on Compose screens? Any documentation on this would help greatly.
from accessibility-test-framework-for-android.
I have the same Question. Are there any plans to support Jetpack Compose with this tool?
from accessibility-test-framework-for-android.
I assume this, so devices and emulators, but not robolectric?
public AccessibilityHierarchyAndroid build() {
AccessibilityHierarchyAndroid result;
if (fromRootView != null) {
if (BuildCompat.isAtLeastU() && !isRobolectric()) {
result =
buildHierarchyFromViewAndItsNodeInfo(
fromRootView, getAccessibilityNodeInfoExtraDataExtractor());
} else {
result =
buildHierarchyFromView(fromRootView, getAccessibilityNodeInfoExtraDataExtractor());
}
from accessibility-test-framework-for-android.
That's correct. The Nov 2023 commit added support for UIs containing Compose content when running with Android 10 (API 34), but not on Robolectric.
It also added ElementMatchers (similar to Espresso's ViewMatchers) and matchesElements to support matching AccessibilityViewCheckResult
s with ViewHierarchyElement
s that are not from Views
.
This is still a work in progress.
from accessibility-test-framework-for-android.
Specifically for Robolectric, is the bulk of the technical work in robolectric or ATF?
from accessibility-test-framework-for-android.
Related Issues (20)
- https://github.com/google/Accessibility-Test-Framework-for-Android/blob/a6117fe0059c82dd764fa628d3817d724570f69e/src/main/java/com/google/android/apps/common/testing/accessibility/framework/integrations/espresso/AccessibilityValidator.java#L82
- Migrate to protobuf-javalite HOT 4
- False Positive for SpeakableTextPresentCheck in RecyclerView HOT 2
- Security Policy violation Binary Artifacts HOT 41
- There is a vulnerability in jsoup 1.12.2,upgrade recommended HOT 1
- There is a vulnerability in Guava: Google Core Libraries for Java 28.2-android,upgrade recommended HOT 1
- 4.0.0 is published but there are no release notes HOT 1
- T
- Add Sample and Run Tests in Google Action Workflow
- Test Framework / Accessibility
- nils
- OSV API
- Advance
- Question about custom AccessibilityHierarchyCheck HOT 1
- https://developers.google.com/android/guides/releases
- Cookie & Advertising Policymaking for
- iOS 17
- Google HOT 1
- Tolerant seen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accessibility-test-framework-for-android.