These are chat archives for bvaughn/forms-js

7th
Apr 2015
Brian Vaughn
@bvaughn
Apr 07 2015 03:03
Struggling to write Protractor tests that involve hovering.
Or potentially-absent DOM elements
This is not a very forgiving/friendly framework here.
Brian Vaughn
@bvaughn
Apr 07 2015 03:34

I think I came up with a pretty elegant solution for testing the 3 different formFor templates.

For example, this Protractor test:
https://github.com/bvaughn/angular-form-for/blob/master/tests/integration/directives/checkbox-field.js

Runs against this view:
https://github.com/bvaughn/angular-form-for/blob/master/examples/checkbox-field.html

Which uses this shared helper to load/initialize the correct formFor templates and supporting libraries:
https://github.com/bvaughn/angular-form-for/blob/master/examples/init.js

Not sure any of this directly benefits forms-js, but...maybe if we end up supporting more than one CSS library, it might