-
-
Save vladimir-e/e940825d2f1e550e42cb to your computer and use it in GitHub Desktop.
This file contains 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
Ember.Test.registerHelper('selectFrom', | |
function(app, selector, value, description) { | |
// choose an option | |
find(selector).val(value); | |
// trigger the change | |
find(selector).change(); | |
// assert the selected option | |
equal(find(selector+" option:selected").val(), value, description||"makes the selection"); | |
// promise | |
return wait(); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment