540772c380f0a368687ce285f9b915e0affec03dhuck.elliott/**
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * The contents of this file are subject to the terms of the Common Development and
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * Distribution License (the License). You may not use this file except in compliance with the
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * License.
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott *
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * specific language governing permission and limitations under the License.
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott *
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * When distributing Covered Software, include this CDDL Header Notice in each file and include
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * Header, with the fields enclosed by brackets [] replaced by your own identifying
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * information: "Portions copyright [year] [name of copyright owner]".
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott *
90929d4c6b284dd318f4a78c2aa407afb7423747oliver.bradley * Copyright 2014-2015 ForgeRock AS.
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott */
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne/*global require, define, QUnit, window, $, module */
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott
540772c380f0a368687ce285f9b915e0affec03dhuck.elliottdefine([
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott "sinon",
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel "org/forgerock/commons/ui/common/util/Constants",
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel "org/forgerock/commons/ui/common/main/EventManager",
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel "org/forgerock/commons/ui/common/main/Router",
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott "org/forgerock/openidm/ui/admin/delegates/SyncDelegate",
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne "org/forgerock/openidm/ui/admin/mapping/util/MappingUtils",
352c411653c48af103d64372adc7832043da4257Elizabeth Browne "org/forgerock/openidm/ui/admin/mapping/properties/AddPropertyMappingDialog",
352c411653c48af103d64372adc7832043da4257Elizabeth Browne "org/forgerock/openidm/ui/admin/mapping/properties/EditPropertyMappingDialog",
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne "org/forgerock/openidm/ui/admin/util/LinkQualifierUtils",
352c411653c48af103d64372adc7832043da4257Elizabeth Browne "org/forgerock/openidm/ui/admin/mapping/properties/RoleEntitlementsView",
352c411653c48af103d64372adc7832043da4257Elizabeth Browne "org/forgerock/openidm/ui/admin/mapping/properties/AttributesGridView",
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott "org/forgerock/openidm/ui/admin/mapping/MappingBaseView",
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott "org/forgerock/openidm/ui/admin/mapping/PropertiesView",
0ea80cefe47c78fcc09ccb3fcee169be590ed21aJason Browne "org/forgerock/commons/ui/common/main/Configuration",
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel "org/forgerock/commons/ui/common/util/UIUtils",
352c411653c48af103d64372adc7832043da4257Elizabeth Browne "../mocks/mapping/propertiesViewLoad"
352c411653c48af103d64372adc7832043da4257Elizabeth Browne], function (sinon,
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel Constants,
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel EventManager,
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel Router,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne syncDelegate,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne mappingUtils,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne addPropertyMappingDialog,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne editPropertyMappingDialog,
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne LinkQualifierUtils,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne RoleEntitlementsView,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne AttributesGridView,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne mappingBaseView,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne PropertiesView,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne conf,
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel UIUtils,
352c411653c48af103d64372adc7832043da4257Elizabeth Browne propertiesViewLoadMock) {
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott var mappingName = "systemLdapAccounts_managedUser";
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott return {
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott executeAll: function (server) {
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott module('Property Mapping UI Functions');
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott QUnit.asyncTest("PropertiesView Tests", function () {
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne $("#qunit-fixture").append("<div id=\"attributesGrid\"></div>");
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott propertiesViewLoadMock(server);
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne var syncDetails = {
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel "sync": {"mappings":[{"target":"managed/user","properties":[{"target":"displayName","source":"cn"},{"target":"description","source":"description"},{"target":"givenName","source":"givenName"},{"target":"mail","source":"mail"},{"target":"telephoneNumber","source":"telephoneNumber"},{"target":"sn","source":"sn"},{"target":"userName","source":"uid"}],"source":"system/ldap/account","policies":[{"action":"UPDATE","situation":"CONFIRMED"},{"action":"UPDATE","situation":"FOUND"},{"action":"CREATE","situation":"ABSENT"},{"action":"EXCEPTION","situation":"AMBIGUOUS"},{"action":"CREATE","situation":"MISSING"},{"action":"DELETE","situation":"SOURCE_MISSING"},{"action":"IGNORE","situation":"UNQUALIFIED"},{"action":"IGNORE","situation":"UNASSIGNED"}],"name":"systemLdapAccounts_managedUser"},{"target":"system/ldap/account","links":"systemLdapAccounts_managedUser","properties":[{"target":"givenName","source":"givenName"},{"target":"sn","source":"sn"},{"target":"cn","source":"","transform":{"type":"text/javascript","source":"source.displayName || (source.givenName + ' ' + source.sn);"}},{"target":"uid","source":"userName"},{"target":"description","source":"description","condition":{"type":"text/javascript","source":"!!object.description"}},{"target":"mail","source":"mail"},{"target":"userPassword","transform":{"type":"text/javascript","source":"openidm.decrypt(source);"},"source":"password","condition":{"type":"text/javascript","source":"object.password != null"}},{"target":"telephoneNumber","source":"telephoneNumber","condition":{"type":"text/javascript","source":"!!object.telephoneNumber"}}],"source":"managed/user","onCreate":{"type":"text/javascript","source":"target.dn = 'uid=' + source.userName + ',ou=People,dc=example,dc=com';"},"policies":[{"action":"UPDATE","situation":"CONFIRMED"},{"action":"LINK","situation":"FOUND"},{"action":"CREATE","situation":"ABSENT"},{"action":"IGNORE","situation":"AMBIGUOUS"},{"action":"IGNORE","situation":"MISSING"},{"action":"DELETE","situation":"SOURCE_MISSING"},{"action":"IGNORE","situation":"UNQUALIFIED"},{"action":"IGNORE","situation":"UNASSIGNED"}],"name":"managedUser_systemLdapAccounts"},{"target":"managed/user","properties":[],"source":"system/ldap/__ALL__","policies":[{"action":"ASYNC","situation":"ABSENT"},{"action":"ASYNC","situation":"ALL_GONE"},{"action":"ASYNC","situation":"AMBIGUOUS"},{"action":"ASYNC","situation":"CONFIRMED"},{"action":"ASYNC","situation":"FOUND"},{"action":"ASYNC","situation":"FOUND_ALREADY_LINKED"},{"action":"ASYNC","situation":"LINK_ONLY"},{"action":"ASYNC","situation":"MISSING"},{"action":"ASYNC","situation":"SOURCE_IGNORED"},{"action":"ASYNC","situation":"SOURCE_MISSING"},{"action":"ASYNC","situation":"TARGET_IGNORED"},{"action":"ASYNC","situation":"UNASSIGNED"},{"action":"ASYNC","situation":"UNQUALIFIED"}],"name":"sourceLdap__ALL___managedUser"}]},
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel "mappingName": "systemXmlfileAccounts_managedUser"
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel };
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel AttributesGridView.setCurrentMapping(syncDetails.sync.mappings[0]);
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel AttributesGridView.setSyncConfig(syncDetails.sync);
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel LinkQualifierUtils.setLinkQualifier(["default", "test"], syncDetails.sync.mappings[0].name);
0ea80cefe47c78fcc09ccb3fcee169be590ed21aJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel conf.globalData.sampleSource = {"givenName":"Aaccf","employeeType":"employee","cn":"Aaccf Amar","dn":"uid=user.0,ou=People,dc=example,dc=com","telephoneNumber":"+1 685 622 6202","ldapGroups":["cn=Manager,ou=Groups,dc=example,dc=com"],"uid":"user.0","mail":"user.0@maildomain.net","sn":"Amar","description":"This is the description for Aaccf Amar.","_id":"uid=user.0,ou=People,dc=example,dc=com"};
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel AttributesGridView.render([mappingName], function () {
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel var setNumRepresentativePropsLineSpy;
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal($('#attributesGrid').length, 1, "Page Successfully Loads");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel //getCurrentMapping() test
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.getCurrentMapping().name, mappingName, "getCurrentMapping() returns proper value");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find("div.changesPending:visible").length, 0,"Changes Pending message not shown");
0ea80cefe47c78fcc09ccb3fcee169be590ed21aJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel //PropertiesGrid tests
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find(".ui-jqgrid").length, 1, "Properties grid loaded");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find(".ui-jqgrid tr:gt(1)").length, AttributesGridView.getCurrentMapping().properties.length, "Correct number of properties displayed in grid");
0ea80cefe47c78fcc09ccb3fcee169be590ed21aJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find(".ui-jqgrid tr.jqgrow:eq(1)").find("td:eq(2) .text-muted").length, 1, "Sample successfully displayed");
0ea80cefe47c78fcc09ccb3fcee169be590ed21aJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find(".ui-jqgrid tr.jqgrow:eq(1)").find("td:eq(2) .text-muted").html(), "(This is the description for Aaccf Amar.)", "Default value successfully displayed");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel //numRepresentativeProperties tests
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel setNumRepresentativePropsLineSpy = sinon.spy(AttributesGridView, "setNumRepresentativePropsLine");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel $("#numRepresentativeProps").val(2).keyup();
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.getNumRepresentativeProps(), 2, "Number of representative properties successfully changed");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(setNumRepresentativePropsLineSpy.called, true, "setNumRepresentativePropsLine successfully called after change to Number of representative properties");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel AttributesGridView.setNumRepresentativeProps(4);
0ea80cefe47c78fcc09ccb3fcee169be590ed21aJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel setNumRepresentativePropsLineSpy.restore();
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel //remove property tests
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel sinon.stub(UIUtils, "jqConfirm", function (message,callback) {
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel callback();
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find("div.changesPending:visible").length, 1,"Changes Pending message displayed");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.notEqual(AttributesGridView.model.mappingProperties.length, AttributesGridView.getCurrentMapping().properties.length, "Property successfully removed from current mapping properties");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel $("#clearChanges").click();
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.model.mappingProperties, null, "Clear Changes button clears changed mapping properties from session storage");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(AttributesGridView.$el.find("div.changesPending:visible").length, 0,"Changes Pending message successfully hidden");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel UIUtils.jqConfirm.restore();
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.start();
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel });
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel AttributesGridView.$el.find(".removePropertyBtn[target=displayName]").click();
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel });
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott });
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
e217869edbae075c18fd85c2d468a7ce9050b3b3Jake Feasel
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott QUnit.asyncTest("AddPropertyMappingDialog Tests", function () {
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne $("#qunit-fixture").append("<div id=\"attributesGrid\"></div>");
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott propertiesViewLoadMock(server);
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott mappingBaseView.data = {};
42be21a8d046897a4a36b1cb023e686131046985Elizabeth Browne AttributesGridView.model.mappingProperties = null;
e217869edbae075c18fd85c2d468a7ce9050b3b3Jake Feasel delete PropertiesView.route;
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel EventManager.sendEvent(Constants.EVENT_CHANGE_VIEW, { route: Router.configuration.routes.propertiesView, args: [mappingName] }).always(function () {
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott //addPropertyMappingDialog tests
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel addPropertyMappingDialog.render({
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel saveCallback: function(mappingProperties){
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal(_.last(mappingProperties).target,"test","Property mapping successfully added");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.equal($("#propertyAddForm").length, 0, "Add Property Dialog successfully closed");
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel QUnit.start();
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel }
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel },function() {
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne QUnit.equal($("#propertyMappingDialogForm").length, 1, "Add Property Dialog successfully loaded");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne addPropertyMappingDialog.$el.find("[name=propertyList]").val("test");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne $(".bootstrap-dialog .btn-primary").click();
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne });
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel
75d0e6897931d0d08f4d64dc1420ce03576b49cbJake Feasel })
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott });
e217869edbae075c18fd85c2d468a7ce9050b3b3Jake Feasel
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne /*
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne This entire test needs to be looked at. I believe the data it is looking for changed. Along with that and the bootstrap dialog change
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne it should probably just be rewritten.
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott QUnit.asyncTest("EditPropertyMappingDialog Tests", function () {
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott var browserStorageDelegate = require("org/forgerock/openidm/ui/admin/delegates/BrowserStorageDelegate");
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott propertiesViewLoadMock(server);
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott mappingBaseView.data = {};
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott browserStorageDelegate.remove(mappingName + "_Properties");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
e217869edbae075c18fd85c2d468a7ce9050b3b3Jake Feasel delete PropertiesView.route;
e217869edbae075c18fd85c2d468a7ce9050b3b3Jake Feasel
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott PropertiesView.render([mappingName], function () {
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott //editPropertyMappingDialog tests
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne editPropertyMappingDialog.render([mappingName, 1], function(){
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne var propsBefore = browserStorageDelegate.get(mappingName + "_Properties"),
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne propEditForm = editPropertyMappingDialog.$el;
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne QUnit.equal($("#propertyMappingDialogForm").length, 1, "Edit Property Dialog successfully loaded");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //propEditForm.find("[name=source]").val("test").trigger("change");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //QUnit.equal(editPropertyMappingDialog.$el.find("#Property_List").find(".validation-message").text(),"You must select a valid property name.","Invalid property message displayed correctly");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //QUnit.ok($(".bootstrap-dialog .btn-primary:disabled").length > 0, "Submit button properly disabled");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //propEditForm.find("[name=source]").val("sn").trigger("change");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //QUnit.equal(editPropertyMappingDialog.data.property.source,"sn","Property mapping source successfully changed");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //QUnit.equal(editPropertyMappingDialog.$el.find("#Property_List").find("input[type=submit]:disabled").length,0, "Submit button properly enabled");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //$(".bootstrap-dialog .btn-default").click();
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //QUnit.notDeepEqual(browserStorageDelegate.get(mappingName + "_Properties"),propsBefore,"Property mapping successfully updated");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne //QUnit.equal($("#propertyEditForm:visible").length, 0, "Edit Property Dialog successfully closed");
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne QUnit.start();
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott });
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott });
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott });
c6acaf789531718f174a4fc5b87aaed163b861dbJason Browne */
e217869edbae075c18fd85c2d468a7ce9050b3b3Jake Feasel
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott }
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott };
540772c380f0a368687ce285f9b915e0affec03dhuck.elliott
0e2f85c75c270eec9d148bab17911441d8843a2aJake Feasel});