O'Reilly logo

Mastering Ember.js by Mitchel Kelonye

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

Writing integration tests

We now already know that integration tests test the import workflows and user journeys in an application. The Ember.js framework is well tested; reviewing these tests can help a great deal in learning how to write tests for your application. Many features such as bindings and observers are already tested, so you will be writing more integration tests than unit tests. The integration tests in the chapter sample cover virtually all user interactions in the application. We will first go through all consumer-related cases, the first of which ascertains that users can see the available meals on the first page:

find('.products li').length.should.equal(4);

This example shows the use of the synchronous find helper, which returned ...

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