Closed tschob closed 6 years ago
For our UI-Tests it is necessary to have an accessible placeholder since we want to verify that the warning and error messages are shown.
Right now we saw no possible way to access this information
We set the accessibilityLabels of textInput to expose the placeholder text in UI-Tests (and Voice Over) every time the placeholder text is changed.
accessibilityLabel
textInput
What do you think: Can this be merged into the library?
Before: Text field ("some text typed"). The placeholder is not accessible
After: Same text field, but the placeholder is accessible through the label
Our Need
For our UI-Tests it is necessary to have an accessible placeholder since we want to verify that the warning and error messages are shown.
Right now we saw no possible way to access this information
What did we do?
We set the
accessibilityLabel
s oftextInput
to expose the placeholder text in UI-Tests (and Voice Over) every time the placeholder text is changed.What do you think: Can this be merged into the library?
Example
Before: Text field ("some text typed"). The placeholder is not accessible
After: Same text field, but the placeholder is accessible through the label