Created
February 3, 2015 14:24
-
-
Save koriroys/2979b4cb203ac70e5301 to your computer and use it in GitHub Desktop.
testing ember
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
export default function(username, password) { | |
visit('/login'); | |
fillIn('input.identification', username); | |
fillIn('input.password', password); | |
click('button.submit'); | |
} |
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
import login from 'appname/tests/extras/login'; | |
test('Current user set properly when user logs in.', function() { | |
login('testuser', 'testpassword'); | |
andThen(function() { | |
equal(find('.user-name').text().trim(), 'testuser', "current user not set properly"); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment