Giter Site home page Giter Site logo

Comments (7)

oknirb avatar oknirb commented on April 27, 2024 2

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.

bassettsj avatar bassettsj commented on April 27, 2024 1

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.

nishanth043 avatar nishanth043 commented on April 27, 2024

+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.

foster55ff avatar foster55ff commented on April 27, 2024

I have the same Question. Are there any plans to support Jetpack Compose with this tool?

from accessibility-test-framework-for-android.

yschimke avatar yschimke commented on April 27, 2024

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.

oknirb avatar oknirb commented on April 27, 2024

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 AccessibilityViewCheckResults with ViewHierarchyElements that are not from Views.

This is still a work in progress.

from accessibility-test-framework-for-android.

yschimke avatar yschimke commented on April 27, 2024

Specifically for Robolectric, is the bulk of the technical work in robolectric or ATF?

from accessibility-test-framework-for-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.