Fix cucumber log in and close account feature
This commit is contained in:
parent
81476b79ca
commit
a594d8f7ce
2 changed files with 3 additions and 5 deletions
|
|
@ -11,10 +11,9 @@ Feature: Close Account
|
||||||
And I put in my password in "close_account_password"
|
And I put in my password in "close_account_password"
|
||||||
And I preemptively confirm the alert
|
And I preemptively confirm the alert
|
||||||
And I press "Close Account"
|
And I press "Close Account"
|
||||||
Then I should be on the home page
|
Then I should be on the new user session page
|
||||||
|
|
||||||
When I go to the new user session page
|
When I try to sign in manually
|
||||||
And I try to sign in manually
|
|
||||||
Then I should be on the new user session page
|
Then I should be on the new user session page
|
||||||
When I wait for the ajax to finish
|
When I wait for the ajax to finish
|
||||||
Then I should see "Invalid email or password."
|
Then I should see "Invalid email or password."
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@ When /^I try to sign in$/ do
|
||||||
@me ||= Factory(:user_with_aspect, :getting_started => false)
|
@me ||= Factory(:user_with_aspect, :getting_started => false)
|
||||||
page.driver.visit(new_integration_sessions_path(:user_id => @me.id))
|
page.driver.visit(new_integration_sessions_path(:user_id => @me.id))
|
||||||
And %(I press "Login")
|
And %(I press "Login")
|
||||||
And %(I should see "Login") # we now are on index.html for Ilya.
|
And %(I am on the homepage)
|
||||||
And %(I follow "Login") # click "Login" to go to your stream
|
|
||||||
# To save time as compared to:
|
# To save time as compared to:
|
||||||
#When %(I go to the new user session page)
|
#When %(I go to the new user session page)
|
||||||
#When %(I fill in "Username" with "#{@me.username}")
|
#When %(I fill in "Username" with "#{@me.username}")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue