summaryrefslogtreecommitdiffstats
path: root/install/ui/test/aci_tests.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-01-03 10:57:59 +0100
committerEndi S. Dewata <edewata@redhat.com>2012-01-11 00:48:36 -0600
commit05345ce8c8007dd3ef708ae9049423937d543c67 (patch)
tree46878d53093042ba87bc7bac250b35742e91c63f /install/ui/test/aci_tests.js
parent9dff149830a31294b10353c26f8a6f5aef133cb3 (diff)
downloadfreeipa-05345ce8c8007dd3ef708ae9049423937d543c67.tar.gz
freeipa-05345ce8c8007dd3ef708ae9049423937d543c67.tar.xz
freeipa-05345ce8c8007dd3ef708ae9049423937d543c67.zip
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
Diffstat (limited to 'install/ui/test/aci_tests.js')
-rw-r--r--install/ui/test/aci_tests.js9
1 files changed, 7 insertions, 2 deletions
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
@@ -49,6 +49,11 @@ module('aci', {
enabled: false
},
{
+ type: 'entity_select',
+ name: 'memberof',
+ widget: 'target.memberof'
+ },
+ {
name: 'subtree',
widget: 'target.subtree',
enabled: false
@@ -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');
});