Setting up integration tests in an ember-cli app - how to access module() and visit()?

admin

Administrator
Staff member
This page,
<a href="http://iamstef.net/ember-cli/#testing" rel="nofollow">ember-cli testing</a>,
says "The included tests demonstrate how to write both unit tests and acceptance/integration tests using the new
<a href="http://ianpetzer.wordpress.com/2013...ember-js-using-ember-testing-and-qunit-rails/" rel="nofollow">ember-testing package</a>."

However in order to get an integration test working, I need to find
Code:
module
and
Code:
visit
or any of the <a href="http://emberjs.com/guides/testing/test-helpers/" rel="nofollow">ember test helpers</a>.
Where are they found, where can I import them from?

<hr>

Details:

The closest I have found to
Code:
module
is
Code:
moduleFor
, which can be imported from
Code:
ember-qunit
. Module for is not suitable for integration testing as I am testing an entire page or series of pages within the app, rather than an individual model, route, controller, view, etc.

My best guess is that
Code:
visit
can be found within Ember itself, but I am not sure where to import it from.

Using neither
Code:
module
nor
Code:
moduleFor
, I am able to run the tests, but they error out:

<blockquote>
ReferenceError: visit is not defined
</blockquote>