mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +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
|
||||
|
||||
|
@ -16,6 +16,7 @@ moduleForAcceptance('Acceptance | User Settings');
|
|||
|
||||
test('visiting /settings/general', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('organization', 1);
|
||||
authenticateUser();
|
||||
visit('/settings/general');
|
||||
|
||||
|
@ -29,6 +30,7 @@ test('visiting /settings/general', function (assert) {
|
|||
|
||||
test('changing the Website title and description', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('organization', 1);
|
||||
authenticateUser();
|
||||
visit('/settings/general');
|
||||
|
||||
|
@ -61,6 +63,7 @@ test('visiting /settings/folders', function (assert) {
|
|||
|
||||
test('visiting /settings/users', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('user', 2);
|
||||
authenticateUser();
|
||||
visit('/settings/users');
|
||||
|
||||
|
@ -75,6 +78,7 @@ test('visiting /settings/users', function (assert) {
|
|||
|
||||
test('add a new user', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('user', 2);
|
||||
authenticateUser();
|
||||
visit('/settings/users');
|
||||
|
||||
|
@ -107,4 +111,4 @@ function checkForCommonAsserts() {
|
|||
findWithAssert('#user-button');
|
||||
findWithAssert('#accounts-button');
|
||||
findWithAssert('.info .title');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue