Last active
August 29, 2015 14:13
-
-
Save fesor/d5a687f0534666a7ed1a to your computer and use it in GitHub Desktop.
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
Feature: Authentification and Authorization | |
In order to use app | |
As a user | |
I should successfully sign in into my account | |
Background: Users registered in the system | |
Given users registered: | |
| name | email | password | | |
| Sergey | qa1@example.com | qa1pass | | |
Given i on login screen | |
@critical,@authorization | |
Scenario: User enters email and password correctly and logs in to the application. | |
When i sign in with email "qa1@example.com" and password "qa1pass" | |
Then i should be successfully logged in | |
@critical,@authorization,@manual | |
Scenario: user incorrectly enters email or password | |
When i login with email "qa1@example.com" and password "wrong-pass" | |
Then authorization should fail | |
And i should see error message | |
@hybrid,@manual | |
Scenario: User should fill profile after first login | |
When i sign in with email "qa1@example.com" and password "qa1pass" | |
Then i should be successfully logged in | |
And i should be redirected to "edit profile" screen | |
@hybrid,@manual | |
Scenario: User should be redirected to "My Forms" screen after login | |
Given Sergey have filled profile | |
When i sign in as Sergey | |
Then i should be successfully logged in | |
And i should be redirected to "edit profile" screen | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment