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:
parent
41735837b9
commit
fe1e457d96
3 changed files with 4 additions and 43 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue