Repository navigation
fix(android): carry an empty text on a node labelled by its content description - #4531
Conversation
|
This PR is ready: I found no problems in bfd8ce7. Only one external review check has reported on this head, and it passes. The repository CI for this fork has not run yet and needs maintainer approval. The six local failures you reported (runner-artifact-manifest, runner-toolchain-identity, code-signature) are in files this diff does not touch. I did not run the new tests or the emulator snapshots, so I rely on your emulator run and judged the regressions by reading the base code. There are no conflicts. Not blocking, and you can take or leave these: the reproduction in #4530 ( Before merge, the repo CI gates need to run on this head, and the maintainer should confirm that publishing the field without changing |
* origin/main: fix(android): carry an empty text on a node labelled by its content description (#4531) fix(ios): restore the back swipe's pre-swipe still span (#4515) fix(daemon-client): type the remote daemon refusal with its dispatch fact (#4532) fix: prepare reinstall artifacts before removing apps (#4533) fix(ios): classify the keyboard dismiss refusal by what it dispatched (#4536) fix(ios): press the navigation bar back button and speed up the back swipe (#4508) refactor(gestures): one owner for the densified gesture path; drop the unproven sendevent transport (#4239) fix(host-kit): keep Linux process identity stable across clock steps (#4438) fix(ios): bound the idle wait of keyboard dismiss and keyboard enter (#4454) fix(device-selection): fail an ambiguous device request with only the tied devices (#4506)
Summary
An Android node is labelled by its text, else its content description;
contentDescriptionis published only when it differs from the label (#2912). So a view with a description and no text was published exactly like a view showing that string:get textansweredsaved_taskfor an empty view.The node now carries
textwhen the view's text is not already the label: an empty string on a view labelled by its description, absent elsewhere.labelandcontentDescriptionare unchanged, sotext ?? labelis the text the view shows. Both Android producers (ADB helper, Appium source) follow the rule; the field joins the unchanged-snapshot comparison and thefind/getdigest. 10 files, +44/-7. Closes #4530.Validation
Tested at
bfd8ce71b, base ddbfc85.pnpm check:affected --run --head bfd8ce71b: passes up tounit, where 19,762 pass and 6 fail. Base-blocked: the same 6 fail on ddbfc85 alone (Path is a directoryin symlink cases ofrunner-artifact-manifest,runner-toolchain-identity,code-signature; macOS 27.2, Node 24.12).src/__tests__/android-ui-hierarchy.test.tsfails on base and passes on head.text: ""on description-only nodes. Once the view showssaved_task, its node has notext."text":""on description-only nodes.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.