completely green
This commit is contained in:
@@ -6,8 +6,8 @@ Feature: Sign up as user using facebook
|
||||
Given There is no user information stored in the local storage
|
||||
When I visit the user obtain token path
|
||||
Then I should be signed in as a user through facebook
|
||||
And I wait 4 seconds
|
||||
And I should be redirected to the user home
|
||||
When 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
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
|
||||
step "There is no user information stored in the local storage" do
|
||||
visit '/'
|
||||
page.execute_script %|Qstorage = window.localStorage|
|
||||
page.evaluate_script(%|Qstorage.getItem('user_id')|).should be_blank
|
||||
page.evaluate_script(%|Qstorage.getItem('auth_token')|).should be_blank
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user