summaryrefslogtreecommitdiffstats
path: root/install/ui/test/functional/user.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-03-24 16:55:21 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-03-25 18:32:29 -0400
commit80363a24af57761c17eb958d354d7ff07d353406 (patch)
tree5949b79f7db5fd4faf5ad8d64330d1a20947f179 /install/ui/test/functional/user.js
parent9a9391b572bc09c17bad0735946667df568402d8 (diff)
Prototypemaster
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');
+});