February 2016
Beginner to intermediate
308 pages
5h 46m
English
Acceptance tests generally help test workflows and emulate user interactions. In this recipe, we'll look at creating a few simple acceptance tests.
book-shelf and a new acceptance test called add-book-test.js:$ ember g component book-shelf $ ember g acceptance-test add-book
This will create the code necessary for the book-shelf component and the add-book acceptance test. Keep in mind that an integration test will also be generated for the book-shelf component. We will not be updating the integration test in this example.
books array and new action:// app/components/book-shelf.js import Ember from 'ember'; export default ...
Read now
Unlock full access