Created
January 12, 2015 05:45
-
-
Save davidwallacejackson/616368a26241175b4eca to your computer and use it in GitHub Desktop.
Click event not firing on component
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
| import Ember from 'ember'; | |
| import startApp from '../helpers/start-app'; | |
| import { describeModule, it } from 'ember-mocha'; | |
| /* global assert, asyncIt */ | |
| var App; | |
| var store; | |
| describeModule('route:servers', 'Servers', {}, function() { | |
| beforeEach(function(){ | |
| App = startApp(); | |
| store = App.__container__.lookup('store:main'); | |
| visit('/'); | |
| click('#servers-modal-trigger'); //this modal contains several ServerMenuItem components | |
| }); | |
| afterEach(function(){ | |
| Ember.run(App, 'destroy'); | |
| }); | |
| it('should edit a server and discard', function() { | |
| var serverRecord = null; | |
| var serverMenuItem = null; | |
| click('#server-1'); | |
| andThen(function() { | |
| //the click() method of the controller should have run by now, but it hasn't | |
| }); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment