addMappingTest.js revision c6acaf789531718f174a4fc5b87aaed163b861db
1879N/A "../mocks/addMapping"
1879N/A], function (constants, router, eventManager, addMappingView, resourcesView, adminInit, addMapping) {
0N/A QUnit.equal(addMappingView.$el.find("#resourceConnectorContainer .resource-body").length, 1, "Resources successfully loaded");
0N/A QUnit.equal(addMappingView.$el.find("#resourceManagedContainer .resource-body").length, 4, "Managed Objects successfully loaded");
0N/A addMappingView.$el.find("#resourceConnectorContainer .resource-body:first .add-resource-button").trigger("click");
0N/A addMappingView.$el.find("#resourceManagedContainer .resource-body:first .add-resource-button").trigger("click");
0N/A setTimeout(function(){
0N/A QUnit.equal(addMappingView.$el.find("#mappingSource .mapping-resource:visible").length, 1, "Add mapping source successful");
0N/A QUnit.equal(addMappingView.$el.find("#mappingTarget .mapping-resource:visible").length, 1, "Add target source successful");
0N/A QUnit.equal(addMappingView.$el.find("#mappingTarget .mapping-resource:visible").length, 1, "Add target source successful");
0N/A setTimeout(function(){
0N/A QUnit.equal(addMappingView.$el.find("#mappingTarget .mapping-resource select").length, 1, "Swap successful");
4141N/A setTimeout(function(){
QUnit.ok($(".bootstrap-dialog .mappingName").length > 0, "Mapping name auto generated successfully");
_.delay(function(){
QUnit.equal(addMappingView.$el.find("#mappingSource .mapping-resource-empty:visible").length, 1, "Removal of source successful");