Closed simonihmig closed 9 years ago
Please merge this! Trying to write integration tests without this is almost impossible :+1:
@simonihmig @Emerson guys I missed this one, but I just committed this: [03481f232e56d0bb90e6], Is it good enough for you?
That should do it, thanks!
I would still prefer to have the name attribute available as well, which I imagine helps support things like 1Password, screen readers, and potentially other JS libraries - but the ID is definitely something we need as well.
Once we get the tests running again I'm happy to add name support myself, I had it already implemented in a fork and was pretty minimal code.
I find it useful to be able to set the name attribute of the control elements, for example to find the controls within integration tests. Standard ember input helper allow this, see http://emberjs.com/guides/templates/input-helpers/, but not ember-forms. Added the name property of the controls as a computed property, defaults to propertyName, so you have some reasonable defaults.
Hope this might be helpful to others!
Greetings, Simon