VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Translate Like a Pro | 12690 — Android Espresso AccessibilityChecks: View Assertions, Localized Labels, Touch Targets and CI QA

Conceptual illustration of independent computer systems connected through a shared interface with testing pathways.

Android Espresso AccessibilityChecks brings automated accessibility checks into instrumented UI tests, giving a mobile team an early warning when native Android views expose problems such as missing useful labels or problematic touch interactions. For a translated app, the most helpful question is not simply whether the tests pass in the default language. It is whether a person using a supported locale can understand controls, navigate the application, recover from errors and complete the intended task. This guide explains how to use Espresso accessibility assertions responsibly across translated Android interfaces.

A native Android accessibility-testing workflow differs from a browser audit. An Android screen has views, resources, activities or fragments, accessibility services and device configurations; a test interacts with those objects and observes the resulting screen state. Espresso’s AccessibilityChecks integration can run checks as view assertions during UI actions. It is useful for repeatable diagnostics, but it cannot judge the accuracy of a translation, guarantee that TalkBack reads an entire journey coherently, or establish full accessibility conformance for every type of Android UI.

This world-facing tutorial covers the official androidx.test.espresso.accessibility.AccessibilityChecks API, practical Kotlin-style test arrangements, content descriptions, actionable targets, error states, right-to-left layouts, larger text, localized currencies and test-report triage. You will also learn when a screen belongs to a different testing technology, such as Jetpack Compose, and when an assistive-technology session is necessary. The goal is to make mobile accessibility a normal part of multilingual release quality rather than a final checklist performed only after translations are shipped.

The essential workflow

  • Identify native View screens and meaningful tasks before enabling automated checks.
  • Use the current AndroidX Espresso accessibility API and compatible test dependencies.
  • Run instrumented journeys in selected locales and representative device configurations.
  • Investigate the affected view instead of suppressing the entire failure class.
  • Confirm translated meaning and complete key journeys with TalkBack and real interaction.

What the official API actually does

The AndroidX API reference describes AccessibilityChecks as an integration that enables automated accessibility checks in Espresso tests. Its enable() method installs checking as a global ViewAssertion for ViewActions, and accessibilityAssertion() exposes a backing assertion that can be used explicitly. The current class is in androidx.test.espresso.accessibility. Older material referring to a version in espresso-contrib may be deprecated; verify the current artifact and dependency coordinates against the AndroidX documentation before installing. Keep test tooling versions fixed when comparing release results.

What constitutes a meaningful test

A valuable test models a reader’s task, not a random click. The test launches a supported state, performs a useful action and asserts an outcome. Example: choose a translated shipping option, submit an incomplete address, read the localized correction request and recover. Accessibility checks may flag some view-level problems as actions occur. The team still needs to evaluate the task’s meaning, speech feedback and real-device behavior. Organize cases by actual customer journey to prevent important states from being missed.

Add the dependency to androidTest, not app shipping code

Android UI tests normally keep Espresso test dependencies in the androidTest configuration. Consult current AndroidX release documentation for matching versions rather than copying an outdated dependency number. As a representative concept, a test can call AccessibilityChecks.enable() before actions and use onView(withId(R.id.continueButton)).perform(click()) in an Espresso View-based screen. The accessibility checker works with relevant ViewActions; it is not a magic replacement for all Android instrumentation or all Jetpack Compose semantics tests.

Avoid turning the test into a translation dictionary dump

Use approved Android string resources and explicit expectations for labels, hints, errors and announcements. Resource qualifiers, language fallbacks and plural rules can change what is displayed. A localization regression may surface as English content in a Spanish form even when all text fields have nonempty content descriptions. A content description can be technically present yet misleading. Match accessibility checks with language review by someone who understands the exact service, its consequences and its vocabulary.

Understand the practical limits of view checks

Automated checks can detect certain view accessibility issues, but some problems emerge only across several screens or through speech output. Focus progression, TalkBack navigation, decision clarity, accidental deletion and subtle negation in a warning require complementary testing. Custom views, web content inside WebView, and Compose interfaces have different structures and testing paths. Label coverage honestly so a passing Espresso run is not misrepresented as a complete audit of every surface.

Test configurations deliberately

Android applications behave differently with system locale, font scale, display size, orientation, dark mode, input method and right-to-left support. Build a small risk-based matrix of relevant configurations rather than claiming a single emulator run proves worldwide usability. Prioritize languages with long strings, complex shaping, RTL direction or distinct number and date conventions. For language switching, verify both visible and accessible wording after changes to resources and state.

Handle reports and failures with judgement

A useful failure contains the screen, locale, device configuration, action, test step, observed problem, expected accessible behavior and likely owning component. If a checker raises a warning, reproduce it before changing production code. If a custom component has a legitimate special pattern, explain its semantics and verify with assistive technology; do not simply suppress failures to make CI green. Attach only synthetic test data and remove private screenshots or account details.

Release acceptance is layered

For a critical mobile form, combine instrumented view assertions, functional UI assertions, language QA, responsive text testing and TalkBack traversal. Consider a task complete only after the user can reach the controls, understand what is being asked, recognize errors, make a safe choice and confirm the resulting action. The best outcome is not the smallest number of warnings; it is a traceable body of evidence that the app is usable across its advertised languages.

A minimal illustrative Kotlin-style setup

In a View-based Android instrumented test, the central idea is to import androidx.test.espresso.accessibility.AccessibilityChecks, enable it during suitable test setup, and then interact with real screen views through Espresso ViewActions. For example, AccessibilityChecks.enable() precedes onView(withId(R.id.continueButton)).perform(click()). The R.id.continueButton identifier is an illustrative application resource, not a system constant. Obtain current library versions and complete imports from the official AndroidX documentation, and use a deliberately controlled fixture before installing checks across a large suite.

When a targeted assertion is needed, the API also exposes accessibilityAssertion(). The type of checks performed and the conditions under which they run depend on the supported integration and test framework. Avoid copying a sample that was written for an old version without verifying the namespace, artifact and expected result. After enabling checks, intentionally exercise a known test fixture problem to establish that the test actually fails when it should.

Thirty field cases for a multilingual Android release

The examples below distinguish repeatable view-level warnings from broader questions about speech output, user choice and translation. Some cases can be caught by checks, some require functional instrumentation, and some demand language and TalkBack review. Do not misrepresent the result of one method as proof of all three.

1. Install the modern accessibility integration

The team copies a tutorial importing a deprecated Espresso accessibility class from an older library. Check the installed AndroidX artifact, import path and official reference for the project’s current test stack. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Use androidx.test.espresso.accessibility.AccessibilityChecks with a compatible espresso-accessibility dependency. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Build and run a minimal instrumented test before distributing the pattern to every module. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

2. Enable checks before meaningful actions

A test calls AccessibilityChecks.enable() after all important clicks have already occurred. Review setup order, lifecycle and where ViewActions actually execute. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Enable checks during appropriate initialization so exercised ViewActions are checked. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Trigger one known, harmless test fixture defect to confirm the integration is active. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

3. Understand the global assertion scope

A team assumes the checker has audited every screen in the app after clicking a single settings button. List actual visited screens and actions; distinguish a view assertion from an application-wide crawl. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Create explicit journeys covering onboarding, account entry, settings, errors and confirmation. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Record unvisited flows as not tested instead of marking the entire product accessible. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

4. Unnamed image-only controls

A native toolbar icon saves an appointment but exposes no meaningful action name to accessibility services. Inspect the relevant ImageButton and content-description sources as part of the failing screen. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Supply a localized action-oriented description rather than the icon’s visual shape. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Use TalkBack to find the save action and confirm the expected appointment is preserved. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

5. Decorative images speak unnecessarily

A starburst background is assigned the description ‘yellow star’ and disrupts a confirmation message. Determine whether the image conveys information or is merely visual decoration. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Remove an unnecessary accessibility announcement from decorative imagery while retaining informative content. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Read the confirmation screen in sequence and verify that important details remain available. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

6. Two delete controls sound identical

A cart has several unlabeled trash icons, and the user cannot tell which item each will remove. Review content descriptions and surrounding item context in the repeated view hierarchy. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Name the intended deletion target or provide a clear contextual action pattern. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Remove one test item with TalkBack and ensure the other items are untouched. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

7. A touch target is difficult to activate

A localized filter icon is placed in a narrow corner where people repeatedly miss it. Inspect the actionable view bounds and any touch-target warnings under the tested configuration. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Increase the effective target area without making nearby controls overlap or respond unpredictably. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Try the action on a representative small phone with actual touch input. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

8. Text expansion clips a payment label

A German payment button grows but its text is clipped inside a fixed-height card. Increase device font scale and capture the actual state used in the instrumented journey. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Allow the container to grow, wrap text and keep the full action reachable. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Complete payment with larger text rather than checking only the initial screen. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

9. Right-to-left settings switch

An Arabic switch is positioned correctly but its spoken label refers to another setting. Inspect the view’s accessible label, state and relationship to the nearby description. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Keep the state and translated description linked to the intended setting; use direction-aware layout. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Toggle it with TalkBack and verify the actual setting changed. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

10. A form error appears after submission

A localized address form marks the invalid field red but never announces a useful reason. Trigger the form failure and inspect the view state and displayed error information. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Provide a specific, translated error and guide focus toward a recoverable action. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Correct the field using touch exploration and spoken feedback before submitting again. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

11. A translated hint contradicts field input

A Hindi phone field asks for ‘country code’ but its numeric validation accepts only local digits. Compare input rules, placeholder or hint resources and the acceptance criteria. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Rewrite the instructions or correct the input validation so the promises agree. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Try valid and invalid international examples without storing real phone numbers. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

12. A dialog’s buttons are reversed in meaning

The user sees a confirmation asking to delete data, but the localized negative button sounds affirmative. Inspect both resource strings, their roles and the actual action handlers. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Send the destructive wording for qualified translation review and correct action mapping. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Test confirm and cancel separately with synthetic records to ensure no accidental deletion. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

13. A content description remains English

The French app uses French visible text while the accessible toolbar label is sourced from an English hard-coded string. Find the view and its generated or programmatic description instead of changing unrelated display copy. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Move the accessible string into approved localized resources with suitable fallback behavior. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Inspect French and at least one other target language with TalkBack. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

14. Plural quantities are misleading

A shopping cart says ‘1 items’ in one language and a singular total in another. Inspect plural resource selection and the quantity attached to the current view. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Use language-appropriate plural handling and complete values for the user’s locale. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Test zero, one, two and an unusually large count with both visible and spoken feedback. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

15. A calendar announces the wrong month

A localized date picker advances visually while the accessible month title stays on the previous month. Trigger next-month navigation and inspect updated date state and label resources. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Synchronize the selected period and its accessible representation. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Choose a boundary date and confirm the value stored in the reservation. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

16. A RecyclerView reuses stale labels

A recycled product row inherits the previous item’s content description during fast scrolling. Scroll through a long synthetic data set and inspect recycled child views after binding. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Rebind accessible labels and states from the current item rather than cached content. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Locate and open a specific item by its correct name after rapid scrolling. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

17. Network waiting state is silent

A submit button disappears during upload and the screen seems frozen to assistive readers. Trigger a controlled delayed response and inspect progress and status feedback. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Provide meaningful translated progress information without excessive repeated announcements. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Verify that users can distinguish loading, success and failure and know when to act. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

18. Authentication opens a WebView

The native app routes the user into embedded web login, which is outside the ordinary view-only test scope. Trace the transition and identify which accessibility layer is responsible. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Add browser or WebView-specific assessment to the native Espresso workflow. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Complete a sign-in and failed-password recovery in the selected language. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

19. A Compose screen is mistaken for a View screen

The team assumes legacy View assertions fully cover a modern Jetpack Compose interface. Inspect the UI technology and relevant test semantics before claiming coverage. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Use documented Compose accessibility-testing integrations where supported by the project’s versions. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Record View and Compose coverage separately, then test the full journey with TalkBack. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

20. Voice output mangles a mixed-language name

A product name includes a Japanese phrase inside an English sentence and is pronounced confusingly. Inspect resource text and the spoken user experience beyond checker pass/fail outcomes. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Consider appropriate language-aware speech handling and alternative phrasing without corrupting the brand name. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Ask target-language readers to confirm intelligibility in the actual app. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

21. Switching locale resets the user’s work

A user changes language during checkout and all form values vanish without warning. Automate the language switch with synthetic entries and inspect resulting state. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Preserve safe input state or provide a clear warning where preservation is genuinely impossible. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Continue checkout in the new language and verify values and consent decisions. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

22. High-contrast mode hides status icons

A success status relies on a subtle green icon that is invisible against a theme override. Inspect the screen with accessibility display settings and different visual modes. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Pair state changes with meaningful text and maintain sufficient visual distinction. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Confirm an actual user can identify failure and success without colour alone. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

23. A currency code changes meaning

A quote presents a local currency marker that could be confused with another country’s similarly named currency. Compare displayed amounts, resource formatting and the transaction’s underlying currency code. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Use unambiguous currency presentation when money decisions depend on the distinction. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Verify amount, symbol and ISO currency data remain consistent through checkout. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

24. A localized number field fails on separators

An amount field accepts a dot but rejects a locale’s usual decimal comma without explanation. Test typed and pasted numbers in a controlled test data set. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Explain allowed input clearly or support the appropriate locale-aware parsing safely. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Cover minimum, maximum, rounding and malformed input while protecting exact transaction amounts. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

25. A time zone is hidden in a reminder

The appointment is scheduled correctly, but the translated confirmation does not explain the relevant time zone. Inspect the displayed and accessible confirmation values and service location. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Render the time and zone clearly using locale-aware formatting without changing the instant. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Test daylight-saving transitions where relevant and ask a reader to restate the appointment time. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

26. Keyboard input method obstructs a button

A multilingual IME occupies the screen and prevents reaching the continue action. Run with representative input methods and device sizes, observing focus and scroll. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Allow content to move or scroll and keep the active field and next action reachable. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Complete the form in the relevant script without closing the keyboard through an unintended workaround. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

27. A warning is suppressed globally

A recurring accessibility check failure is muted for every test without investigating its cause. Review the suppressed result, component ownership and failure type. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Fix the view or narrowly document a justified exception with a real assistive-technology test. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Keep a regression test that would catch the problem if it reappeared. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

28. A test uses real customer screenshots

A QA engineer attaches a production account screen that contains contact and billing information. Review test fixture provenance and report storage before sharing artifacts. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Use invented data, control access to CI reports and redact anything inadvertently captured. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Confirm the final bug ticket contains only the evidence needed to reproduce the defect. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

29. TalkBack navigation differs from automated results

Espresso checks pass on a settings screen, yet a blind user cannot locate the save action after a dialog closes. Reproduce the transition with TalkBack and record focus and announcements. Begin by identifying the actual screen and view state, not only the app module where the code lives. Record the configured locale and device settings because they can change labels, line lengths, content descriptions and the elements visible during an Espresso ViewAction.

Repair focus management, labeling or dialog behaviour at the actual interaction boundary. If the checker reports a violation, determine what it established and what still needs to be tested. The aim is an interface where readers can understand what a control does, activate it and recognize the result. An automated pass cannot establish that a translated warning is accurate or that a sequence of TalkBack announcements conveys the right decision.

Treat task completion as the release criterion even if the automated result stays green. Keep the acceptance criterion concrete: the relevant control has a useful name, the user can act through the intended interaction method, the resulting status is understandable and there is a workable recovery route if something fails. Retest the affected locale and a source-language baseline with synthetic records, then document who approved the final wording and who confirmed the technical behaviour.

Example: a multilingual clinic appointment flow

A clinic app offers appointment booking in English, Arabic and Hindi. The first screen asks for a department; the second requests a preferred date; the third collects contact details and consent. Write separate instrumented paths for a valid booking and an invalid contact field, then run representative language configurations. Check View-based labels and target sizes during actions, confirm date and number formatting, and verify that translated error messages are visible and associated with the right inputs. Avoid entering any real patient’s details.

Now evaluate the boundaries that automated assertions cannot settle. Does the Arabic layout preserve a coherent reading and interaction sequence? Can someone using TalkBack identify the calendar navigation and repeat the selected date? Does a Hindi warning mean the same thing as its source, particularly when it says an action is not required or must not happen? If the answer is uncertain, keep that language’s release gate open even when the instrumented run passed.

A concise decision record

Write one row per meaningful screen and state: feature, build, target locale, Android version, screen configuration, input data type, check outcome, manual observation, reader consequence and owner. Distinguish tool failure, product defect, translation concern and untested scenario. When the team closes an issue, preserve a successful retest and note whether the user journey was completed by keyboard, touch, TalkBack or a combination.

This record gives future developers a stable answer to a practical question: what did the team actually test? A green test suite with an undocumented set of missing locales is weaker than a transparent suite that identifies its coverage and its remaining risks. Responsible mobile localization depends on both kinds of honesty.

Frequently asked questions

What is the correct AndroidX import?

Use the current androidx.test.espresso.accessibility.AccessibilityChecks class according to Android’s official API reference. Older espresso-contrib examples may refer to a deprecated class.

Does enable() scan an entire installed app?

No. It enables checks during the relevant Espresso view actions. Coverage depends on which screens and states the tests actually exercise, and the checker has a defined technical scope.

Can Espresso AccessibilityChecks validate translations?

It can identify some view-level accessibility concerns, but a nonempty accessible label can still be mistranslated. Domain and language reviewers need to confirm actual meaning.

Does it cover Jetpack Compose?

Do not assume a View-oriented Espresso check establishes full coverage of a Compose semantics tree. Check the current Compose accessibility testing APIs and test the user experience separately.

Should all warnings block release?

Triage by user impact, reproducibility and risk. Confirmed barriers to critical actions deserve stronger gating than an uncertain low-impact observation. Avoid blanket suppression just to produce a green run.

How should right-to-left layouts be tested?

Configure the intended locale and direction, use realistic content, examine reading and interaction order and complete the key task. Visual mirroring alone does not prove semantic or focus correctness.

Is a passing check enough without TalkBack?

No. Actual speech, navigation, focus return and the clarity of dynamic messages require assistive-technology testing for meaningful confidence.

What evidence should a mobile accessibility issue contain?

Include the app build, Android version, device configuration, locale, screen, test action, observed result, reader consequence, screenshot if appropriate and successful retest. Use synthetic data.

Official references and connected guides

Use the current Android Developers AccessibilityChecks API reference and Espresso testing guidance when setting up dependencies and assertions. For complementary real-use checks, see the existing Android TalkBack multilingual guide and Android Accessibility Scanner guide. They cover distinct user and product testing perspectives.