Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created December 11, 2015 16:21
Show Gist options
  • Save jherdman/6d6905d4c95d35ba4ca3 to your computer and use it in GitHub Desktop.
Save jherdman/6d6905d4c95d35ba4ca3 to your computer and use it in GitHub Desktop.
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