Skip to content

Instantly share code, notes, and snippets.

@trek
Created November 7, 2012 20:22
Show Gist options
  • Save trek/4034164 to your computer and use it in GitHub Desktop.
Save trek/4034164 to your computer and use it in GitHub Desktop.
casper.test.emberDidRender = function(cbk){
casper.evaluate(function(){
return window.Ember.run.end();
});
cbk.call(casper)
};
// use
casper.then(I_click_edit);
function I_click_edit(){
this.test.emberDidRender(function(){
this.clickLabel('Edit');
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment