summaryrefslogtreecommitdiffstats
path: root/install/ui/test/functional/user.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/test/functional/user.js')
-rwxr-xr-xinstall/ui/test/functional/user.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/install/ui/test/functional/user.js b/install/ui/test/functional/user.js
new file mode 100755
index 00000000..d8039ecb
--- /dev/null
+++ b/install/ui/test/functional/user.js
@@ -0,0 +1,31 @@
+module("test", {
+ setup: function(){
+ S.open("//test.html");
+ }
+});
+
+test("Add User", function(){
+ S('span[name="search"] input[name="add"]').click();
+
+ S('div.ui-dialog input[name="uid"]').type('testuser');
+ S('div.ui-dialog input[name="givenname"]').type('Test');
+ S('div.ui-dialog input[name="sn"]').type('User');
+
+ S('div.ui-dialog button').click();
+
+ S('span[name="search"] input[name="select"][value="testuser"]').exists();
+
+ ok(true, 'Added Test User');
+});
+
+test("Delete User", function(){
+
+ var checkbox = S('span[name="search"] input[name="select"][value="testuser"]');
+ checkbox.click();
+
+ S('span[name="search"] input[name="delete"]').click();
+
+ checkbox.missing();
+
+ ok(true, 'Deleted Test User');
+});