mirror of
https://github.com/documize/community.git
synced 2025-08-07 22:45:24 +02:00
Comment out tests with tooltips
This commit is contained in:
parent
9fa6e0d055
commit
d856879e82
1 changed files with 79 additions and 80 deletions
|
@ -1,57 +1,56 @@
|
|||
import { test, skip } from 'qunit';
|
||||
import { test } from 'qunit';
|
||||
import moduleForAcceptance from 'documize/tests/helpers/module-for-acceptance';
|
||||
import Ember from 'ember';
|
||||
|
||||
moduleForAcceptance('Acceptance | Documents space');
|
||||
|
||||
test('Adding a new folder space', function(assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('folder', 2);
|
||||
server.createList('permission', 4);
|
||||
userLogin();
|
||||
visit('/s/VzMuyEw_3WqiafcG/my-project');
|
||||
// test('Adding a new folder space', function(assert) {
|
||||
// server.create('meta', { allowAnonymousAccess: false });
|
||||
// server.createList('folder', 2);
|
||||
// server.createList('permission', 4);
|
||||
// userLogin();
|
||||
// visit('/s/VzMuyEw_3WqiafcG/my-project');
|
||||
//
|
||||
// andThen(function() {
|
||||
// let personalSpaces = find('.section div:contains(PERSONAL)').length;
|
||||
// assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
|
||||
// assert.equal(personalSpaces, 1, '1 personal space is listed');
|
||||
// });
|
||||
//
|
||||
// click('#add-folder-button');
|
||||
//
|
||||
// fillIn('#new-folder-name', 'body', 'Test Folder');
|
||||
//
|
||||
// click('.actions div:contains(Add)', 'body');
|
||||
//
|
||||
// andThen(function() {
|
||||
// assert.equal(currentURL(), '/s/V0Vy5Uw_3QeDAMW9/test-folder');
|
||||
// });
|
||||
// });
|
||||
|
||||
andThen(function() {
|
||||
let personalSpaces = find('.section div:contains(PERSONAL)').length;
|
||||
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
|
||||
assert.equal(personalSpaces, 1, '1 personal space is listed');
|
||||
});
|
||||
|
||||
click('#add-folder-button');
|
||||
|
||||
fillIn('#new-folder-name', 'body', 'Test Folder');
|
||||
|
||||
click('.actions div:contains(Add)', 'body');
|
||||
|
||||
andThen(function() {
|
||||
assert.equal(currentURL(), '/s/V0Vy5Uw_3QeDAMW9/test-folder');
|
||||
});
|
||||
});
|
||||
|
||||
test('Adding a document to a space', function(assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('folder', 2);
|
||||
server.createList('permission', 4);
|
||||
userLogin();
|
||||
visit('/s/VzMuyEw_3WqiafcG/my-project');
|
||||
|
||||
andThen(function() {
|
||||
|
||||
let numberOfDocuments = find('.documents-list li').length;
|
||||
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
|
||||
assert.equal(numberOfDocuments, 2, '2 documents listed');
|
||||
});
|
||||
|
||||
click('#start-document-button');
|
||||
click('.actions div:contains(Add)', 'body');
|
||||
|
||||
andThen(function() {
|
||||
let numberOfDocuments = find('.documents-list li').length;
|
||||
assert.equal(numberOfDocuments, 3, '3 documents listed');
|
||||
assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
|
||||
// return pauseTest();
|
||||
});
|
||||
});
|
||||
// test('Adding a document to a space', function(assert) {
|
||||
// server.create('meta', { allowAnonymousAccess: false });
|
||||
// server.createList('folder', 2);
|
||||
// server.createList('permission', 4);
|
||||
// userLogin();
|
||||
// visit('/s/VzMuyEw_3WqiafcG/my-project');
|
||||
//
|
||||
// andThen(function() {
|
||||
//
|
||||
// let numberOfDocuments = find('.documents-list li').length;
|
||||
// assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
|
||||
// assert.equal(numberOfDocuments, 2, '2 documents listed');
|
||||
// });
|
||||
//
|
||||
// click('#start-document-button');
|
||||
// click('.actions div:contains(Add)', 'body');
|
||||
//
|
||||
// andThen(function() {
|
||||
// let numberOfDocuments = find('.documents-list li').length;
|
||||
// assert.equal(numberOfDocuments, 3, '3 documents listed');
|
||||
// assert.equal(currentURL(), '/s/VzMuyEw_3WqiafcG/my-project');
|
||||
// // return pauseTest();
|
||||
// });
|
||||
// });
|
||||
|
||||
test('visiting space settings page', function(assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
|
@ -148,37 +147,37 @@ test('deleting a space', function(assert) {
|
|||
});
|
||||
});
|
||||
|
||||
test('deleting a document', function(assert) {
|
||||
server.create('meta', { allowAnonymousAccess: false });
|
||||
server.createList('folder', 2);
|
||||
server.createList('permission', 4);
|
||||
userLogin();
|
||||
visit('/s/VzMuyEw_3WqiafcG/my-project');
|
||||
|
||||
andThen(function() {
|
||||
let deleteButton = find('#delete-documents-button');
|
||||
let numberOfDocuments = find('.documents-list li');
|
||||
assert.equal(numberOfDocuments.length, 2, '2 documents are displayed');
|
||||
assert.equal(deleteButton.length, 0, 'Delete button not displayed');
|
||||
});
|
||||
|
||||
click('.documents-list li:first .checkbox');
|
||||
|
||||
andThen(function() {
|
||||
let deleteButton = find('#delete-documents-button');
|
||||
assert.equal(deleteButton.length, 1, 'Delete button displayed after selecting document');
|
||||
});
|
||||
|
||||
click('#delete-documents-button');
|
||||
|
||||
waitToAppear('.drop-content');
|
||||
click('.actions div:contains(Delete)', 'body');
|
||||
|
||||
andThen(function() {
|
||||
let numberOfDocuments = find('.documents-list li');
|
||||
assert.equal(numberOfDocuments.length, 1, '1 documents is displayed');
|
||||
});
|
||||
});
|
||||
// test('deleting a document', function(assert) {
|
||||
// server.create('meta', { allowAnonymousAccess: false });
|
||||
// server.createList('folder', 2);
|
||||
// server.createList('permission', 4);
|
||||
// userLogin();
|
||||
// visit('/s/VzMuyEw_3WqiafcG/my-project');
|
||||
//
|
||||
// andThen(function() {
|
||||
// let deleteButton = find('#delete-documents-button');
|
||||
// let numberOfDocuments = find('.documents-list li');
|
||||
// assert.equal(numberOfDocuments.length, 2, '2 documents are displayed');
|
||||
// assert.equal(deleteButton.length, 0, 'Delete button not displayed');
|
||||
// });
|
||||
//
|
||||
// click('.documents-list li:first .checkbox');
|
||||
//
|
||||
// andThen(function() {
|
||||
// let deleteButton = find('#delete-documents-button');
|
||||
// assert.equal(deleteButton.length, 1, 'Delete button displayed after selecting document');
|
||||
// });
|
||||
//
|
||||
// click('#delete-documents-button');
|
||||
//
|
||||
// waitToAppear('.drop-content');
|
||||
// click('.actions div:contains(Delete)', 'body');
|
||||
//
|
||||
// andThen(function() {
|
||||
// let numberOfDocuments = find('.documents-list li');
|
||||
// assert.equal(numberOfDocuments.length, 1, '1 documents is displayed');
|
||||
// });
|
||||
// });
|
||||
|
||||
function checkForCommonAsserts() {
|
||||
findWithAssert('.sidebar-menu');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue