indexiatech / ember-forms

Smart, Intuitive forms for Ember.js styled with Bootstrap, Multi layouts and Validation support.
http://indexiatech.github.io/ember-forms
Apache License 2.0
218 stars 45 forks source link

Test failures in referencing app #96

Open technomage opened 9 years ago

technomage commented 9 years ago

When trying to test components that use the ember-idx-form components I run into an error for layout components/em-form-group not found. If I comment out the layoutName attribute of that component it works for both tests, and when running the app. With the layoutName property present it can not find the layout when running tests, probably some difference in the way the parts are composed in the isolated environment of a component unit test.

technomage commented 9 years ago

Commenting out the layoutName allowed it to render a component, but the content of the form group is missing (predictably). Unsure how to get the component to find the template at this point. Go look at any component unit tests that reference ember-idx-form next.

asaf commented 9 years ago

@technomage What tests are you talking about?

technomage commented 9 years ago

Application tests in app that uses the addon. Converting the addon to use layout and importing each template resolved the issue. See my pull request in ember-rapid-forms