Add failing scenario for testing user token change

This commit is contained in:
2013-11-07 09:57:07 +01:00
parent c04d602e7f
commit 7b9b784ef9
5 changed files with 33 additions and 4 deletions
@@ -1,6 +1,6 @@
Feature: Sign up as user using facebook
@javascript
@javascript @broken
Scenario: Happy flow
Given There is no user information stored in the local storage
When I visit the user obtain token path
@@ -9,10 +9,21 @@ Feature: Sign up as user using facebook
And I should be redirected to the user home
And the newly created user info should be stored in the local storage
@javascript
@javascript @broken
Scenario: Already signed in user visits obtain token path
Given I am signed in as a user
When I visit '/user'
And I wait 4 seconds
Then I should be redirected to the user home
And the newly created user info should be stored in the local storage
@javascript
Scenario: Expired token
Given I visit '/user'
And I wait 4 seconds
And I am signed out as a user
When the user authentication token changes
And I visit '/user'
And I wait 4 seconds
Then the newly created user info should be stored in the local storage