3 ms·
So am I understanding correctly: the attributes assigned to UI elements can have hints for accessibility sake, and the testing tools are filling those attribute
by bdcravens 14y ago
So am I understanding correctly: the attributes assigned to UI elements can have hints for accessibility sake, and the testing tools are filling those attributes with tags to automate to act/assert an element? Info that's valuable to the testing framework, but garbage for accessibility?
Sounds like the testing frameworks have an obligation to provide a tool that can "clean" code for the final working version. Is there a way to do this in XCode without #ifdef'ing? (such as a pre-compilation plugin?)
- potatolicious 14y agoPretty much, yes. The more complex the app the worse it tends to get. Say you have a button that says "Send Email" - the default accessibility label would have the screen reader just read the text, and that's great. And your testing framework can layer on top of this and, say, make sure the button works. It gets a bit more complicated when you apply more rigor to testing - you need the ability to query the state of your program in a way that isn't truly necessary for usability, and forces developers to implement things in ways that are far from intuitive. Take an example, let's say you're building a Facebook app. Instead of "Like This Post", you might have to label the button "Like joebob's post at 3/23/2012 2:17PM" just so the testing framework can uniquely identify one button over another. And this brokenness is hidden, since the visible button is still labeled "Like This Post". Worse, say you want to test that a view changes size when interacted with. Now you're literally embedding sizes and coordinates into accessibility hints/values/labels to make this happen. This devolves very, very quickly. There's been some promising progress on iOS automated testing - the fact that it's happening represents a maturing of the platform and an embrace of quality engineering rather than the seat-of-pants approach we've seen thus far. That being said, the most popular frameworks are still woefully immature.