From 80363a24af57761c17eb958d354d7ff07d353406 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 24 Mar 2011 16:55:21 -0500 Subject: Prototype --- install/ui/test/functional/functional.html | 25 ++++++++++++++++++++++++ install/ui/test/functional/user.js | 31 ++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100755 install/ui/test/functional/functional.html create mode 100755 install/ui/test/functional/user.js (limited to 'install/ui/test/functional') diff --git a/install/ui/test/functional/functional.html b/install/ui/test/functional/functional.html new file mode 100755 index 00000000..89760f58 --- /dev/null +++ b/install/ui/test/functional/functional.html @@ -0,0 +1,25 @@ + + + + IPA Functional Test Suite + + + + + + + + + + +

IPA Functional Test Suite

+

+
+

+
    + + 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'); +}); -- cgit