1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

Fix auth test to use logout button and tweaks to mirage config

This commit is contained in:
zinyando 2016-07-19 18:13:03 +02:00
parent 41735837b9
commit fe1e457d96
3 changed files with 4 additions and 43 deletions

View file

@ -30,8 +30,7 @@ test('visiting /auth/login and logging in', function (assert) {
test('logging out a user', function (assert) {
server.create('meta', { allowAnonymousAccess: false });
userLogin();
visit('/auth/logout');
click('.dropdown-menu a:contains(Logout)');
andThen(function () {
assert.equal(currentURL(), '/auth/login', 'Logging out successful');