smoke = require("../../lib/smoke");
describe('Configuration Workspaces', function () {
- this.timeout(30 * 1000);
+ this.timeout(60 * 1000);
before(function (done) {
zombieAuth.loadApp(done);
});
it('should all be accessible', function (done) {
- this.timeout(80 * 1000);
+ this.timeout(120 * 1000);
var navigator, workspace,
list,
i = -1;
assert = require("chai").assert;
describe('Workspaces', function () {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
it('should log in first', function (done) {
zombieAuth.loadApp(done);
});
var workspaceContainer, workspace, model, id, moduleContainer;
beforeEach(function (done) {
- this.timeout(10 * 1000);
+ this.timeout(60 * 1000);
smoke.navigateToExistingWorkspace(XT.app, "XV.ClassCodeList", function (_workspaceContainer) {
workspaceContainer = _workspaceContainer;
});
});
afterEach(function (done) {
- this.timeout(10 * 1000);
+ this.timeout(60 * 1000);
// maybe one of the tests already released the lock
if (!model.hasLockKey()) {
});
afterEach(function (done) {
- this.timeout(10 * 1000);
+ this.timeout(30 * 1000);
// restore permissions
_.extend(XT.session.privileges.attributes, originalPrivileges);
// Step 1: load the environment with Zombie
//
it('can be loaded with a zombie session', function (done) {
- this.timeout(40 * 1000);
+ this.timeout(60 * 1000);
zombieAuth.loadApp({callback: done, verbose: data.verbose,
loginDataPath: data.loginDataPath});
});
// Step 3: initialize the model to get the ID from the database
//
it('can be initialized by fetching an id from the server', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
init(data, done);
});
//
_.each(data.beforeSetActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(data, done);
});
});
it('can have its values set', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
data.updated = false;
setModel(data, done);
});
// if this model has comments, set them on the model
if (data.commentType) {
it('can have its comments set', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
setComments(data, done);
});
}
_.each(data.beforeSaveActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(data, done);
});
});
//
if (!data.skipSave) {
it('can be saved to the database', function (done) {
- this.timeout(10 * 1000);
+ this.timeout(60 * 1000);
save(data, done);
});
_.each(data.afterSaveActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(data, done);
});
});
// Step 7: save the updated model to the database
//
it('can be re-saved to the database', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
save(data, done);
});
}
//
_.each(data.beforeDeleteActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(data, done);
});
});
if (!data.skipDelete) {
it('can be deleted from the database', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
destroy(data, done);
});
}
_.each(data.afterDeleteActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(data, done);
});
});
exports.updateFirstModel = function (test) {
it('should allow a trivial update to the first model of ' + test.kind, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
navigateToExistingWorkspace(XT.app, test.kind, function (workspaceContainer) {
var updateObj,
statusChanged,
var workspaceContainer,
workspace;
it('can get to a new workspace', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
navigateToNewWorkspace(XT.app, spec.listKind, function (_workspaceContainer) {
workspaceContainer = _workspaceContainer;
done();
});
_.each(spec.beforeSaveUIActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(workspace, done);
});
});
it('can save the workspace', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
if (spec.captureObject) {
XG = XG || {};
XG.capturedId = workspace.value.id;
});
_.each(spec.afterSaveUIActions || [], function (spec) {
it(spec.it, function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
spec.action(workspace, done);
});
});
return;
}
it('can delete the item from the list', function (done) {
- this.timeout(20 * 1000);
+ this.timeout(60 * 1000);
deleteFromList(XT.app, workspace.value, done);
});
};