-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,41 @@ | ||
Feature: Login basic | ||
In order prevent public accessing admin system | ||
As a system admin | ||
I need to authenticate to access the interface | ||
In order prevent public accessing admin system | ||
As a system admin | ||
I need to authenticate to access the interface | ||
|
||
Scenario: | ||
Given I am on "form-login.php" | ||
Then I should see "Sign in" | ||
And I should not see "Currently logged in" | ||
Scenario: | ||
Given I am on "form-login.php" | ||
Then I should see "Sign in" | ||
And I should not see "Currently logged in" | ||
|
||
Scenario: | ||
Given I am on "form-login.php" | ||
And I fill in "email" with "admin" | ||
And I fill in "password" with "admin" | ||
And I press button "Sign in" | ||
Then I should see "Currently logged in" | ||
Scenario: | ||
Given I am on "form-login.php" | ||
And I fill in "email" with "admin" | ||
And I fill in "password" with "admin" | ||
And I press button "Sign in" | ||
Then I should see "Currently logged in" | ||
|
||
Scenario: | ||
Given I am on "form-login.php" | ||
And I fill in "email" with "admin" | ||
And I fill in "password" with "wrong" | ||
And I press button "Sign in" | ||
Then I should see "incorrect" | ||
And I should not see "Currently logged in" | ||
Scenario: | ||
Given I am on "form-login.php" | ||
And I fill in "email" with "admin" | ||
And I fill in "password" with "wrong" | ||
And I press button "Sign in" | ||
Then I should see "incorrect" | ||
And I should not see "Currently logged in" | ||
|
||
Scenario: | ||
Given I am on "form-login.php" | ||
When I fill in "email" with "" | ||
And I fill in "password" with "admin" | ||
And I press button "Sign in" | ||
Then I should see "Must not be empty" | ||
And I should not see "Currently logged in" | ||
Scenario: | ||
Given I am on "form-login.php" | ||
When I fill in "email" with "" | ||
And I fill in "password" with "admin" | ||
And I press button "Sign in" | ||
Then I should see "Must not be empty" | ||
And I should not see "Currently logged in" | ||
|
||
Scenario: Return to original URL after successful login | ||
Given I am on "form-login.php" | ||
Given I am on "acl-clients.php?parameter=whatever" | ||
And I fill in "email" with "user" | ||
And I fill in "password" with "user" | ||
And I press button "Sign in" | ||
Then I should be on "acl-clients.php?parameter=whatever" | ||
And I should see "Client list for ACL testing" |