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

False Positive for SpeakableTextPresentCheck in RecyclerView #41

Open
cckroets opened this issue Jan 6, 2022 · 2 comments
Open

False Positive for SpeakableTextPresentCheck in RecyclerView #41

cckroets opened this issue Jan 6, 2022 · 2 comments

Comments

@cckroets
Copy link

cckroets commented Jan 6, 2022

In some tests we are seeing:

View my_recycler_view: This item may not have a label readable by screen readers. Reported by com.google.android.apps.common.testing.accessibility.framework.checks.SpeakableTextPresentCheck

Looking into the code the problem seems like this is happening because a RecyclerView doesn't have a content description, but my understanding is that we should not have to manually add a content description to a RecyclerView. Is this a bug in this library, or is there a recommendation for manually making RecyclerView accessible.

@hellohj
Copy link

hellohj commented Nov 1, 2022

I do have the same question. We enabled AccessibilityChecks.enable().setRunChecksFromRootView(true) for Espresso testing. One of frequent exceptions is this SpeakableTextPresentCheck. So far, we have suppressed the specific issue from RecyclerViews.
I wonder why Espresso throws this exception and any significance for RecyclerView. Obviously, we can't make RecyclerView not-important-for-accessibility to avoid this exception for TalkBack users. It seems Android Test framework should handle it for us. Would love to hear any thoughts from the team.

@calren
Copy link
Member

calren commented Nov 1, 2022

Filed an issue in our issue tracker here for anybody that wants updates on this.

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

No branches or pull requests

3 participants