forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request joomla#39 from pritalpatel/fix_issue_#37
Fix issue joomla#37
- Loading branch information
Showing
4 changed files
with
34 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,77 +16,77 @@ Feature: users | |
Scenario: Create a add new user | ||
Given There is a add user link | ||
When I create new user with fields Name "register", Login Name "register", Password "register" and Email "[email protected]" | ||
And I Save the user | ||
Then I should wait for the title "Users" and see the message "User successfully saved." | ||
And I Save the user | ||
Then I should see the "User successfully saved." message | ||
|
||
Scenario: Edit user | ||
Given I search and select the user with user name "register" | ||
When I set name as an "Editor" and User Group as "Editor" | ||
And I Save the user | ||
Then I should wait for the title "Users" and see the message "User successfully saved." | ||
And I Save the user | ||
Then I should see the "User successfully saved." message | ||
|
||
Scenario: Block a User | ||
Given I have a user with user name "register" | ||
When I block the user | ||
Then I wait for the title "Users" and see the message "User blocked." | ||
Then I should see the "User blocked." message | ||
|
||
Scenario: Unblock user | ||
Given I have a blocked user with user name "register" | ||
When I unblock the user | ||
Then I wait for the title "Users" and see the message "User enabled." | ||
# Scenario: Unblock user | ||
# Given I have a blocked user with user name "register" | ||
# When I unblock the user | ||
# Then I should see the "User enabled." message | ||
|
||
Scenario: Delete user | ||
Given I have a user with user name "Editor" | ||
When I Delete the user "Editor" | ||
Then I confirm the user should have been deleted by getting the title "Users" and see the message "1 user successfully deleted." | ||
Then I should see the "1 user successfully deleted." message | ||
|
||
Scenario: Create super admin and login into the backend | ||
Given There is a add user link | ||
And I fill a super admin with fields Name "prital", Login Name "prital", Password "prital", and Email "[email protected]" | ||
When I set assigned user group as an Administrator | ||
And I Save the user | ||
And I Save the user | ||
Then Login in backend with username "prital" and password "prital" | ||
|
||
Scenario: Create User without username fails | ||
Given There is a add user link | ||
When I don't fill Login Name but fulfill remaining mandatory fields: Name "piyu", Password "piyu" and Email "[email protected]" | ||
And I Save the user | ||
And I Save the user | ||
Then I see the title "Users: New" | ||
But I see the alert error "Invalid field: Login Name" | ||
|
||
Scenario: Create group | ||
Given There is a add new group link | ||
When I fill Group Title as a "Gsoc" | ||
And I save the Group | ||
Then I should wait for "Users: Groups" title and see the message "Group successfully saved." | ||
Then I should see the "Group successfully saved." message | ||
|
||
Scenario: Edit group | ||
Given I search and select the Group with name "Gsoc" | ||
And I set group Title as a "Gsoc_admin" | ||
When I save the Group | ||
Then I should wait for "Users: Groups" title and see the message "Group successfully saved." | ||
Then I should see the "Group successfully saved." message | ||
|
||
Scenario: Delete Group | ||
Given I search and select the Group with name "Gsoc_admin" | ||
When I Delete the Group "Gsoc_admin" | ||
Then I confirm the group should have been deleted by getting the title "Users: Groups" and see the message "1 User Group successfully deleted." | ||
Then I should see the "1 User Group successfully deleted." message | ||
|
||
Scenario: Create ACL level | ||
Given There is a add viewing access level link | ||
When I fill Level Title as a "joomla" and set Access as a public | ||
And I save the Access Level | ||
Then I wait for the title "Users: Viewing Access Levels" see the message "Access level successfully saved." | ||
Then I should see the "Access level successfully saved." message | ||
|
||
Scenario: Edit ACL | ||
Given I search and select the Access Level with name "joomla" | ||
And I set Access Level title as a "Gsoc_joomla" | ||
When I save Access Level | ||
Then I wait for the title "Users: Viewing Access Levels" and see the message "Access level successfully saved." | ||
When I save the Access Level | ||
Then I should see the "Access level successfully saved." message | ||
|
||
Scenario: Delete ACL | ||
Given I search and select the Access Level with name "Gsoc_joomla" | ||
When I Delete the Access level "Gsoc_joomla" | ||
Then I confirm the Access Level have been deleted by getting the title "Users: Viewing Access Levels" and see the message "1 View Access Level successfully removed." | ||
Then I should see the "1 View Access Level successfully removed." message | ||
|
||
Scenario: User settings (Allow user registration) | ||
Given There is a User link | ||
|