mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
Add more tests and cleanup old ones
This commit is contained in:
parent
68271646eb
commit
c3c7a8450c
7 changed files with 75 additions and 62 deletions
|
@ -16,7 +16,6 @@ moduleForAcceptance('Acceptance | User Settings');
|
|||
|
||||
test('visiting /settings/general', function (assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('organization', 1);
|
||||
authenticateUser();
|
||||
visit('/settings/general');
|
||||
|
||||
|
@ -30,7 +29,6 @@ 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');
|
||||
|
||||
|
@ -63,7 +61,6 @@ 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');
|
||||
|
||||
|
@ -78,7 +75,6 @@ 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');
|
||||
|
||||
|
@ -95,9 +91,6 @@ test('add a new user', function (assert) {
|
|||
fillIn('#newUserEmail', 'test.user@domain.com');
|
||||
click('.button-blue');
|
||||
|
||||
// waitToAppear('.user-notification:contains(Added)');
|
||||
// waitToDisappear('.user-notification:contains(Added)');
|
||||
|
||||
andThen(function () {
|
||||
let numberOfUsers = find('.user-list tr').length;
|
||||
assert.equal(numberOfUsers, 4, '3 Users listed');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue