Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions tests/acceptance/users_frontend.feature
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be deleted

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't that be And instead of But?


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"
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Contributor

@yvesh yvesh Jul 4, 2016

Choose a reason for hiding this comment

The 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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is your Then

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note that there is a typo sholud instead of should


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