The dynamically created "OK" button in the AlertDialog widget could use an ID. That would make automated testing of client-side validation (especially custom validation using my hack to add additional conditions to the Dojo validation profile object) possible.
Currently, no testing tools can record OK button clicks, or validate it's existence, because it has no ID. Coordinate clicking or keyboard macros are needed instead, which are way too fragile.
A small thing, but it would be helpful.