mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
WIP EmberJS upgrade
This commit is contained in:
parent
5cfbf07e55
commit
70a3b5915c
4 changed files with 776 additions and 51 deletions
|
@ -39,6 +39,7 @@
|
|||
"ember-cli-shims": "^1.2.0",
|
||||
"ember-cli-sri": "^2.1.0",
|
||||
"ember-cli-uglify": "^2.0.0",
|
||||
"ember-cli-update": "^0.27.3",
|
||||
"ember-concurrency": "^0.8.12",
|
||||
"ember-data": "3.1.1",
|
||||
"ember-export-application-global": "^2.0.0",
|
||||
|
|
|
@ -51,7 +51,7 @@ module('Acceptance | Documents space', function(hooks) {
|
|||
|
||||
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');
|
||||
});
|
||||
|
||||
|
@ -117,7 +117,7 @@ module('Acceptance | Documents space', function(hooks) {
|
|||
|
||||
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(currentURL(), '/s/VzMygEw_3WrtFzto/test');
|
||||
});
|
||||
|
@ -147,12 +147,12 @@ module('Acceptance | Documents space', function(hooks) {
|
|||
|
||||
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');
|
||||
|
||||
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');
|
||||
});
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@ module('Acceptance | User Settings', function(hooks) {
|
|||
await fillIn('#siteTitle', 'Documize Tests');
|
||||
await click('.button-blue');
|
||||
|
||||
let websiteTitle = find('.content .title').textContent.trim();
|
||||
let websiteTitleInput = find('#siteTitle').value;
|
||||
websiteTitle = find('.content .title').textContent.trim();
|
||||
websiteTitleInput = find('#siteTitle').value;
|
||||
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 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(currentURL(), '/settings/users');
|
||||
});
|
||||
|
|
812
gui/yarn.lock
812
gui/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue