dolibarr/test/acceptance/features/WebUI/login.feature
amunaadh 5d33761b13 API test added for addUsers
Co-authored-by: Swikriti Tripathi <swikriti808@gmail.com>
2020-10-14 13:03:38 +05:45

28 lines
1006 B
Gherkin

Feature: user login
As a user/admin
I want to login to my account
So that I can have access to my functionality
Background:
Given the user has browsed to the login page
Scenario: Admin user should be able to login successfully
When user logs in with username "dolibarr" and password "password"
Then the user should be directed to the homepage
Scenario: Admin user with empty credentials should not be able to login
When user logs in with username "" and password ""
Then the user should not be able to login
Scenario Outline: user logs in with invalid credentials
When user logs in with username "<username>" and password "<password>"
Then the user should not be able to login
And error message "Bad value for login or password" should be displayed in the webUI
Examples:
| username | password |
| dolibar | pass |
| dolibarr | passw |
| dolibar | |
| dolibarr | |
| dolibar | password |