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

WIP EmberJS upgrade

This commit is contained in:
Harvey Kandola 2018-12-08 15:54:10 +00:00
parent 5cfbf07e55
commit 70a3b5915c
4 changed files with 776 additions and 51 deletions

View file

@ -39,6 +39,7 @@
"ember-cli-shims": "^1.2.0", "ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0", "ember-cli-sri": "^2.1.0",
"ember-cli-uglify": "^2.0.0", "ember-cli-uglify": "^2.0.0",
"ember-cli-update": "^0.27.3",
"ember-concurrency": "^0.8.12", "ember-concurrency": "^0.8.12",
"ember-data": "3.1.1", "ember-data": "3.1.1",
"ember-export-application-global": "^2.0.0", "ember-export-application-global": "^2.0.0",

View file

@ -51,7 +51,7 @@ module('Acceptance | Documents space', function(hooks) {
await click('a div:contains(My Project) .space-name'); await click('a div:contains(My Project) .space-name');
let numberOfDocuments = findAll('.documents-list li').length; numberOfDocuments = findAll('.documents-list li').length;
assert.equal(numberOfDocuments, 3, '3 documents listed'); assert.equal(numberOfDocuments, 3, '3 documents listed');
}); });
@ -117,7 +117,7 @@ module('Acceptance | Documents space', function(hooks) {
await visit('/s/VzMygEw_3WrtFzto/test'); await visit('/s/VzMygEw_3WrtFzto/test');
let numberOfPublicFolders = findAll('.folders-list div:contains(EVERYONE) .list a').length; numberOfPublicFolders = findAll('.folders-list div:contains(EVERYONE) .list a').length;
assert.equal(numberOfPublicFolders, 2, '2 folder listed as public'); assert.equal(numberOfPublicFolders, 2, '2 folder listed as public');
assert.equal(currentURL(), '/s/VzMygEw_3WrtFzto/test'); assert.equal(currentURL(), '/s/VzMygEw_3WrtFzto/test');
}); });
@ -147,12 +147,12 @@ module('Acceptance | Documents space', function(hooks) {
await click('.documents-list li:first .checkbox'); await click('.documents-list li:first .checkbox');
let deleteButton = find('#delete-documents-button'); deleteButton = find('#delete-documents-button');
assert.equal(deleteButton.length, 1, 'Delete button displayed after selecting document'); assert.equal(deleteButton.length, 1, 'Delete button displayed after selecting document');
await click('.actions div:contains(Delete) .flat-red'); await click('.actions div:contains(Delete) .flat-red');
let numberOfDocuments = find('.documents-list li'); numberOfDocuments = find('.documents-list li');
assert.equal(numberOfDocuments.length, 1, '1 documents is displayed'); assert.equal(numberOfDocuments.length, 1, '1 documents is displayed');
}); });

View file

@ -39,8 +39,8 @@ module('Acceptance | User Settings', function(hooks) {
await fillIn('#siteTitle', 'Documize Tests'); await fillIn('#siteTitle', 'Documize Tests');
await click('.button-blue'); await click('.button-blue');
let websiteTitle = find('.content .title').textContent.trim(); websiteTitle = find('.content .title').textContent.trim();
let websiteTitleInput = find('#siteTitle').value; websiteTitleInput = find('#siteTitle').value;
assert.equal(websiteTitleInput, websiteTitle, 'Website title is set to Documize Tests'); assert.equal(websiteTitleInput, websiteTitle, 'Website title is set to Documize Tests');
}); });
@ -81,7 +81,7 @@ module('Acceptance | User Settings', function(hooks) {
await fillIn('#newUserEmail', 'test.user@domain.com'); await fillIn('#newUserEmail', 'test.user@domain.com');
await click('.button-blue'); await click('.button-blue');
let numberOfUsers = findAll('.user-list tr').length; numberOfUsers = findAll('.user-list tr').length;
assert.equal(numberOfUsers, 4, '3 Users listed'); assert.equal(numberOfUsers, 4, '3 Users listed');
assert.equal(currentURL(), '/settings/users'); assert.equal(currentURL(), '/settings/users');
}); });

File diff suppressed because it is too large Load diff