mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Refactor mirage config and tests to use new factories
This commit is contained in:
parent
663995b60d
commit
a215a05a88
5 changed files with 69 additions and 276 deletions
|
@ -1,11 +1,11 @@
|
|||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||
//
|
||||
// This software (Documize Community Edition) is licensed under
|
||||
// This software (Documize Community Edition) is licensed under
|
||||
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
//
|
||||
// You can operate outside the AGPL restrictions by purchasing
|
||||
// Documize Enterprise Edition and obtaining a commercial license
|
||||
// by contacting <sales@documize.com>.
|
||||
// by contacting <sales@documize.com>.
|
||||
//
|
||||
// https://documize.com
|
||||
|
||||
|
@ -29,6 +29,7 @@ test('visiting / when not authenticated and with { allowAnonymousAccess: true }
|
|||
test('visiting / when authenticated and with { allowAnonymousAccess: true } takes user to dashboard', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: true });
|
||||
server.createList('folder', 2);
|
||||
server.createList('user', 2);
|
||||
visit('/');
|
||||
|
||||
andThen(function () {
|
||||
|
@ -38,8 +39,10 @@ test('visiting / when authenticated and with { allowAnonymousAccess: true } take
|
|||
|
||||
userLogin();
|
||||
|
||||
// return pauseTest();
|
||||
|
||||
andThen(function () {
|
||||
assert.equal(find('.login').length, 0, 'Login button is not displayed');
|
||||
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project', 'Dashboard is displayed after user is signed in');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue