O'Reilly logo

Learning Yeoman by Jonathan Spratley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing

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.

The test helpers

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' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required