From 05345ce8c8007dd3ef708ae9049423937d543c67 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 3 Jan 2012 10:57:59 +0100 Subject: Added support for memberof attribute in permission The attribute was added to adder dialog and details facet. It uses entity select (group) widget. https://fedorahosted.org/freeipa/ticket/2101 --- install/ui/test/aci_tests.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'install/ui/test') diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js index e166aa3dc..03e891c00 100644 --- a/install/ui/test/aci_tests.js +++ b/install/ui/test/aci_tests.js @@ -48,6 +48,11 @@ module('aci', { widget: 'target.filter', enabled: false }, + { + type: 'entity_select', + name: 'memberof', + widget: 'target.memberof' + }, { name: 'subtree', widget: 'target.subtree', @@ -224,7 +229,7 @@ test("Testing type target.", function() { same(record.type[0], data.result.result.type, "saved type matches sample data"); - same(get_visible_rows(target_widget), ['type', 'attrs'], + same(get_visible_rows(target_widget), ['memberof', 'type', 'attrs'], 'type and attrs rows visible'); ok((record.attrs.length > 10), @@ -268,7 +273,7 @@ test("Testing subtree target.", function() { same(record.subtree[0], data.result.result.subtree, 'subtree set correctly'); - same(get_visible_rows(target_widget), ['subtree'], 'subtree row visible'); + same(get_visible_rows(target_widget), ['memberof', 'subtree'], 'subtree row visible'); }); -- cgit