On Wed, Jun 15, 2011 at 05:27:34PM +0200, jprovazn(a)redhat.com wrote:
From: Jan Provaznik <jprovazn(a)redhat.com>
Added create user tests which were under authentication, but
since we don't have "create new user" link on new login page
it possible to create a user only in admin section.
Task
https://www.aeolusproject.org/redmine/issues/1779
---
src/features/user.feature | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/src/features/user.feature b/src/features/user.feature
index a3fbf04..59e3f42 100644
--- a/src/features/user.feature
+++ b/src/features/user.feature
@@ -56,6 +56,38 @@ Feature: Manage Users
Then I should see "Deleted user"
And there should be 1 user
+ Scenario: Create new user
+ Given I am on the users page
+ When I follow "New User"
+ Then I should be on the new user page
+ And I should see "New Account"
+ When I fill in the following:
+ | Choose a username | testuser2 |
+ | Choose a password | secret |
+ | Confirm password | secret |
+ | First name | Joe |
+ | Last name | Tester |
+ | E-mail | testuser2(a)example.com |
+ And I press "Save"
+ Then I should be on the users page
+ And I should see "User registered!"
+
+ Scenario: Want to register new user but decide to cancel
+ Given I am on the users page
+ When I follow "New User"
+ Then I should be on the new user page
+ And I should see "New Account"
+ When I fill in the following:
+ | Choose a username | testuser2 |
+ | Choose a password | secret |
+ | Confirm password | secret |
+ | First name | Joe |
+ | Last name | Tester |
+ | E-mail | testuser2(a)example.com |
+ And I follow "Cancel"
+ Then I should be on the users page
+ And there should not be user with login "canceluser"
+
# Scenario: Search for users
# Given there is a user "myuser"
# And there is a user "someuser"
--
1.7.4
_______________________________________________
aeolus-devel mailing list
aeolus-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/aeolus-devel
ACK, works perfectly.
-- Matt