specific.js revision 26a6ec53bb06b3fb881e2a0cf5855c300513cad6
0N/A "./mocks/encryptedPW",
0N/A "./mocks/cleartextPW",
0N/A "./mocks/addEditManaged"
0N/A], function (sinon, constants, router, eventManager, mandatoryPasswordChangeDialog, addEditManagedView, resourcesView, adminInit, encryptedPW, cleartextPW, addEditManaged) {
0N/A var testPromises = [];
0N/A var dialogRenderStub = sinon.stub(mandatoryPasswordChangeDialog, "render", function (args, callback) {
0N/A QUnit.equal(mandatoryPasswordChangeDialog.$el.find(".validationRules.group-field-errors>.field-rule").length, 5, "Five validation rules for password displayed");
0N/A eventManager.sendEvent(constants.EVENT_LOGIN_REQUEST, { userName: "openidm-admin", password: "openidm-admin" });
0N/A QUnit.ok(viewManager.currentView === "org/forgerock/openidm/ui/admin/ResourcesView" && viewManager.currentDialog === "null", "Resource page shown after successful login with encrypted password");
0N/A eventManager.sendEvent(constants.EVENT_LOGIN_REQUEST, { userName: "openidm-admin", password: "Passw0rd" });
0N/A QUnit.equal(resourcesView.$el.find("#resourceConnectorContainer .resource-body").length, 2, "Connectors and add Connector successfully added");
0N/A QUnit.equal(resourcesView.$el.find("#resourceManagedContainer .resource-body").length, 5, "Managed Objects and add Managed Object successfully added");
0N/A QUnit.equal(addEditManagedView.$el.find(".add-remove-block:visible").length, 1, "Add Object Type property successfull");
0N/A QUnit.equal(addEditManagedView.$el.find(".add-remove-block:visible").length, 0, "Delete Object Type property successfull");
0N/A QUnit.equal(addEditManagedView.$el.find(".managed-event-hook").length, 1, "Script hook added");
0N/A setTimeout(function() {
0N/A QUnit.ok($("#scriptDialogOkay").is(":disabled") === false, "Script Dialog submit button enabled");
0N/A QUnit.equal(addEditManagedView.$el.find(".event-hook-status").length, 2, "Script Successfully Added");
0N/A QUnit.equal(addEditManagedView.$el.find(".add-remove-block:visible").length, 0, "Delete script successfull");