diff options
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/test/aci_tests.js | 5 | ||||
-rw-r--r-- | install/ui/test/widget_tests.js | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js index 4055120f..52fdc603 100644 --- a/install/ui/test/aci_tests.js +++ b/install/ui/test/aci_tests.js @@ -22,7 +22,7 @@ var target_container; var target_widget; var target_facet; -var entity = IPA.entity({ name: 'bogus' }); +var entity = IPA.entity({ name: 'bogus', redirect_facet: 'details' }); var group_entity = IPA.entity({ name: 'group' }); module('aci', { @@ -99,10 +99,11 @@ module('aci', { IPA.permission_target_policy('target') ] }); + entity.add_facet('details', target_facet); target_container = $('<div id="target"/>').appendTo(document.body); + target_facet.create(target_container); target_widget = target_facet.widgets.get_widget('target'); - target_widget.create(target_container); }, teardown: function() { target_container.remove(); diff --git a/install/ui/test/widget_tests.js b/install/ui/test/widget_tests.js index 489572c2..7ed93608 100644 --- a/install/ui/test/widget_tests.js +++ b/install/ui/test/widget_tests.js @@ -315,7 +315,7 @@ test("IPA.entity_link_widget" ,function(){ widget.is_link = true; //setting is_link is responsibility of field widget.update(mock_record.gidnumber); - link = widget_container.find('a[text=123456]'); + link = widget_container.find('a:contains("123456")'); same(link.length, 1,'link is populated'); same(link.css('display'), 'inline','link is displayed'); |