Skip to content

refactor(e2e/android): [BREAKING] remove createTestProps - #1312

Draft
flochtililoch wants to merge 1 commit into
masterfrom
florent/test-id-fixes
Draft

refactor(e2e/android): [BREAKING] remove createTestProps#1312
flochtililoch wants to merge 1 commit into
masterfrom
florent/test-id-fixes

Conversation

@flochtililoch

Copy link
Copy Markdown
Collaborator

Warning

BREAKING CHANGE
This change removes the createTestProps method from the public API. If you're using it, update your code before updating Hyperview. You can now just set testID prop directly.

Stop using accessibilityLabel on Android as a test ID. The origin of this hack was to work around our test automation framework, which is being fixed: both Android and iOS can use the testID prop consistently. This improves accessibility of apps built with Hyperview, since the accessibility label is not longer overriden by a label readable by machines only. We will revisit in a future PR the ability to set the accessibilityLabel via a new attribute.

@flochtililoch
flochtililoch marked this pull request as draft August 18, 2026 17:16
@flochtililoch
flochtililoch force-pushed the florent/test-id-fixes branch from af6759c to 0a2d7ed Compare August 19, 2026 19:17
BREAKING CHANGE: stop using `accessibilityLabel` on Android as a test ID. The origin of this hack was to work around our test automation framework, which is being fixed: both Android and iOS can use the `testID` prop consistently. This improves accessibility of apps built with Hyperview, since the accessibility label is not longer overriden by a label readable by machines only. We will revisit in a future PR the ability to set the `accessibilityLabel` via a new attribute.

Simplifies test ID assignment across elements by dropping createTestProps
in favor of setting testID from the id attribute on all platforms.
@flochtililoch
flochtililoch force-pushed the florent/test-id-fixes branch from 0a2d7ed to 4f02225 Compare August 19, 2026 20:55
@flochtililoch flochtililoch changed the title refactor(android): [BREAKING] remove createTestProps refactor(e2e/android): [BREAKING] remove createTestProps Aug 31, 2026
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

Successfully merging this pull request may close these issues.

2 participants