-
-
Notifications
You must be signed in to change notification settings - Fork 28
Users frontend scenario- gherkin #44
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Feature: Users Frontend | ||
In order to manage users account in the web | ||
As a user | ||
I need to check user login and registration in joomla! CMS | ||
|
||
Background: | ||
Given Joomla CMS is installed | ||
Then I see the joomla! Home page | ||
|
||
Scenario: Create user from frontend (index.php?option=com_users) | ||
Given I click on the link "Create an account" | ||
And I create a user with fields Name "patel", Username "patel", Password "patel" and Email "[email protected]" | ||
When I press the "Register" | ||
Then I see the warning and notice message | ||
But user is created | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't that be |
||
|
||
Scenario: check the created user in the backend | ||
Given There is a user manager page in administrator | ||
When I search the user with user name "patel" | ||
Then I should see the user "prital" | ||
|
||
Scenario: Login with created user to assure it is blocked | ||
Given A newly created user "patel" with password "patel" | ||
When He press the "login" | ||
Then He should see the "Login denied! Your account has either been blocked or you have not activated it yet." warning | ||
|
||
Scenario: Check if block and activation are working | ||
Given There is a user manager page in administrator | ||
And I unblock the user "patel" | ||
And I active the user "patel" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. active -> activate |
||
When A login user "patel" with password "patel" | ||
Then He should see the message "Hi patel," | ||
|
||
Scenario: Change user details in the frontend, check in the backend | ||
Given I logged with user "patel" | ||
And I press the "Edit Profile" | ||
And I change name as a "patidar" | ||
When I press the "submit" | ||
Then Go to the user manager page in administrator | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still when (And in your case) and you need to switch to an admin account |
||
And I search the user with name "patidar" | ||
And I sholud see the name "patidar" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is your Then There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. note that there is a typo |
||
|
||
Scenario: Test last login date | ||
Given Needs to user "patel" logged in at least once | ||
When I login as a super admin from backend | ||
Then I should see last login date |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be deleted