From c4858db3b6f82c194e1e4e3de7779e79e5bea8de Mon Sep 17 00:00:00 2001 From: "Mark D. Blackwell" Date: Sun, 30 Jun 2013 21:37:22 -0400 Subject: [PATCH] Wait for Twitter & Google Plus --- features/step_definitions/visitor_steps.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/features/step_definitions/visitor_steps.rb b/features/step_definitions/visitor_steps.rb index 2b94f43..3c798a7 100644 --- a/features/step_definitions/visitor_steps.rb +++ b/features/step_definitions/visitor_steps.rb @@ -31,7 +31,12 @@ def invitation_request user end Then /^I should see a message "([^\"]*)"$/ do |arg1| + save_wait_time = Capybara.default_wait_time +# Make sure we wait enough for Twitter and Google Plus + Capybara.default_wait_time = 60 if 'Thank you!' == arg1 page.should have_content (arg1) + Capybara.default_wait_time = save_wait_time + end Then /^my email address should be stored in the database$/ do