Test#click()

click (selector, context) RSVP.Promisepublic

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

Clicks an element and triggers any actions triggered by the element's click event.

Example:

click('.some-jQuery-selector').then(function() {
  // assert something
});

Parameters:

selector String
jQuery selector for finding element on the DOM
context Object
A DOM Element, Document, or jQuery to use as context

Returns:

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

Please login to continue.