Skip to content

AddressFieldView: the text field has no accessibility label and no identifier #59

Done

Description

@romchornyi-pitcrew

Expected Behavior

The text field inside AddressFieldView is an element of the accessibility tree with a label (the field's label, for example "BTC address"), and a host app can give it a stable accessibility identifier, the way buy_refund_field works for the refund field in Dash Wallet.

Current Behavior

In Dash Wallet (Dash DEX → Sell Dash → coin → Enter address), the empty address field shows up in the accessibility tree with no label and no identifier. A UI test can only reach it by tapping a screen point, and a tap on the "BTC address" title above it does not focus it.

The TextField is created with an empty title, and the label is a separate Text above it, so nothing names the field:

An .accessibilityIdentifier that the host puts on AddressFieldView lands on the whole stack, not on the field inside it.

Possible Solution

Steps to Reproduce (for bugs)

  1. In Dash Wallet, open Dash DEX → Sell Dash and pick a coin.
  2. On Enter address, inspect the accessibility tree (Accessibility Inspector, or a Maestro hierarchy dump).
  3. The empty address field has no label and no identifier.

Context

VoiceOver users hear an unnamed text field, and UI tests have to tap it by coordinates. This is related to #49, which covers the scan and clear buttons of the same component but not the field itself.

Your Environment

DashUIKit master at 4494a8b; seen in Dash Wallet on an iPhone 17 simulator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions