Test#visit()

visit (url) RSVP.Promisepublic

Defined in packages/ember-testing/lib/helpers.js:24

Loads a route, sets up any controllers, and renders any templates associated with the route as though a real user had triggered the route change while using your app.

Example:

visit('posts/index').then(function() {
  // assert something
});

Parameters:

url String
the name of the route

Returns:

RSVP.Promise
doc_EmberJs
2016-11-30 16:53:45
Comments
Leave a Comment

Please login to continue.