summaryrefslogtreecommitdiffstats
path: root/ipatests/test_webui
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-04-24 16:32:07 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-11 10:47:27 +0200
commite3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6 (patch)
tree98a1c2200b8689dc9eb429483c9fc845fcf2f7ac /ipatests/test_webui
parent255cbb49763ff579feed935a5a725fc2b272749c (diff)
downloadfreeipa-e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6.tar.gz
freeipa-e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6.tar.xz
freeipa-e3840eef09f4a6b1ac3c0a92f5929353a6c9e6b6.zip
webui: fix regression: enabled gid field on group add
GID field should be enabled by default since the default group is posix. Was caused by option_widget_base not properly reporting value change while selecting the default value. It has to be notified with delay otherwise the event is consumed by FieldBinder. https://fedorahosted.org/freeipa/ticket/4325 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'ipatests/test_webui')
-rw-r--r--ipatests/test_webui/test_group.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/ipatests/test_webui/test_group.py b/ipatests/test_webui/test_group.py
index 8f9229b02..06b34d089 100644
--- a/ipatests/test_webui/test_group.py
+++ b/ipatests/test_webui/test_group.py
@@ -43,6 +43,37 @@ class test_group(UI_driver):
default_facet=group.DEFAULT_FACET)
@screenshot
+ def test_group_types(self):
+ """
+ Test group types in adder dialog
+ """
+ self.init_app()
+
+ pkey = 'itest-group'
+ data = {
+ 'pkey': pkey,
+ 'add': [
+ ('callback', self.check_posix_enabled, True),
+ ('textbox', 'cn', pkey),
+ ('textarea', 'description', 'test-group desc'),
+ ('radio', 'type', 'normal'),
+ ('callback', self.check_posix_enabled, False),
+ ('radio', 'type', 'posix'),
+ ('callback', self.check_posix_enabled, True),
+ ('radio', 'type', 'external'),
+ ('callback', self.check_posix_enabled, False),
+ ('radio', 'type', 'posix'),
+ ('callback', self.check_posix_enabled, True),
+ ],
+ }
+
+ self.add_record(group.ENTITY, data)
+ self.delete(group.ENTITY, [data], navigate=False)
+
+ def check_posix_enabled(self, enabled):
+ self.assert_disabled("[name=gidnumber]", negative=enabled)
+
+ @screenshot
def test_actions(self):
"""
Test group actions