This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find('#my-element').simulate('click', { ctrlKey: true }); | |
// I think this is not right. The Route might not have finished transitioning yet. | |
equal(currentRouteName(), 'inbox.index', "Did not redirect to inbox index route"); | |
// Maybe I should register an async helper??? | |
Ember.Test.registerAsyncHelper('click-with-modifiers', function(app, value) { | |
findWithAssert(value).simulate('click', { ctrlKey: true }); | |
}) |