mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-21 14:44:07 +01:00
migrate login stories to cucumber features
This commit is contained in:
parent
7bdd365ff3
commit
6d1f034111
10 changed files with 166 additions and 122 deletions
25
features/logging_in.feature
Normal file
25
features/logging_in.feature
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
Feature: Existing user logging in
|
||||
|
||||
In order to keep my things private
|
||||
As an existing user
|
||||
I want to log in with my username and password
|
||||
|
||||
Scenario: Succesfull login
|
||||
Given an admin user exists
|
||||
When I go to the login page
|
||||
And I successfully submit the login form as an admin user
|
||||
Then I should be redirected to the home page
|
||||
And I should see "Login successful"
|
||||
|
||||
Scenario: Unsuccesfull login
|
||||
Given an admin user exists
|
||||
When I go to the login page
|
||||
And I submit the login form as an admin user with an incorrect password
|
||||
Then I should be on the login page
|
||||
And I should see "Login unsuccessful"
|
||||
|
||||
Scenario: Accessing a secured page when not logged in
|
||||
Given an admin user exists
|
||||
When I go to the home page
|
||||
Then I should be redirected to the login page
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue