@@ -10,4 +10,9 @@ module FeatureSpecHelper
     setup_mock_auth(:myusa, user)
     visit '/auth/myusa'
   end
+
+  def focus_field(field_id)
+    execute_script "document.getElementById('#{field_id}').scrollIntoView()"
+    execute_script "$('##{field_id}').focus()"
+  end
 end
module FeatureSpecHelper
  # requires IntegrationSpecHelper

  def login_with_oauth
    user = FactoryGirl.create(:user)
    login_as(user)
  end

  def login_as(user)
    setup_mock_auth(:myusa, user)
    visit '/auth/myusa'
  end
end

since we'er only using this method once right now, I'd suggest putting it in the spec file where it is being used. Easier to check it out that way!