From a594d8f7ce6c0378a89880b05819c58626ecc274 Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Fri, 25 Nov 2011 04:48:47 -0800 Subject: [PATCH] Fix cucumber log in and close account feature --- features/closes_account.feature | 5 ++--- features/step_definitions/session_steps.rb | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/features/closes_account.feature b/features/closes_account.feature index f0f8eb817..6f6b0b24d 100644 --- a/features/closes_account.feature +++ b/features/closes_account.feature @@ -11,10 +11,9 @@ Feature: Close Account And I put in my password in "close_account_password" And I preemptively confirm the alert 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 - And I try to sign in manually + When I try to sign in manually Then I should be on the new user session page When I wait for the ajax to finish Then I should see "Invalid email or password." diff --git a/features/step_definitions/session_steps.rb b/features/step_definitions/session_steps.rb index 593730eb2..60108fa91 100644 --- a/features/step_definitions/session_steps.rb +++ b/features/step_definitions/session_steps.rb @@ -7,8 +7,7 @@ When /^I try to sign in$/ do @me ||= Factory(:user_with_aspect, :getting_started => false) page.driver.visit(new_integration_sessions_path(:user_id => @me.id)) And %(I press "Login") - And %(I should see "Login") # we now are on index.html for Ilya. - And %(I follow "Login") # click "Login" to go to your stream + And %(I am on the homepage) # To save time as compared to: #When %(I go to the new user session page) #When %(I fill in "Username" with "#{@me.username}")