-
Book Overview & Buying
-
Table Of Contents
Learning Yeoman
By :
Testing an Ember application is easy. Ember includes several helpers to aid with integration testing; these helpers are aware of asynchronous behavior in the application and make it extremely easy to write tests.
Ember provides some useful helper methods for integration testing, which are as follows:
visit(url): This visits the given route (url) and returns a promise that is resolved when all async behavior is complete
find(selector, context): This locates an element by selector within the application and/or within the context
fillIn(selector, text): This locates an input element by selector, fills with the given text, and returns a promise when complete
click(selector): This locates an element by selector, triggers the elements' click event, and returns a promise when complete
keyEvent(selector, type, keyCode): This simulates a key event with keyCode on the element found by selector
Ember comes with support for integration testing and unit testing. Let's configure...
Change the font size
Change margin width
Change background colour