Created
December 11, 2015 16:21
-
-
Save jherdman/6d6905d4c95d35ba4ca3 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
test('visiting / and make the login with first profile', function(assert) { | |
visit('/'); | |
let list; | |
andThen(function() { | |
assert.equal(currentURL(), '/', 'URL of login'); | |
list = find('.profile-list'); | |
assert.ok(list.length > 0, 'We have profiles'); | |
click(list[0]); | |
}); | |
andThen(function() { | |
assert.equal(currentPath(), 'conversation', 'profile logged!'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment