diff --git a/features/step_definitions/user_steps.rb b/features/step_definitions/user_steps.rb index 30612da..2932743 100644 --- a/features/step_definitions/user_steps.rb +++ b/features/step_definitions/user_steps.rb @@ -41,8 +41,6 @@ Given(/^I am logged in as a Colab user$/) do 'name': colab_user.name, 'email': colab_user.email }.to_json) - - visit(user_omniauth_authorize_path(provider: 'RemoteUser')) # Authenticate the user (remove this if you want just to set the headers) end Then(/^I should be at the Home page$/) do diff --git a/features/users/omniauth.feature b/features/users/omniauth.feature index aab4414..f7e8aaf 100644 --- a/features/users/omniauth.feature +++ b/features/users/omniauth.feature @@ -3,13 +3,7 @@ Feature: Omniauth authentication As a regular user I want to authenticate with an external provider - #FIXME: For some reason. just for cucumber tests, if you set the HTTP headers, it ignores all the path you visit and goes straight to the omniauth controller action - @javascript Scenario: through Colab Given I am logged in as a Colab user - #And I am at the homepage - #And I take a picture of the page - #And I click the Sign In link - #When I click the Sign in with Remote User link - Then I should be at the Home page - And I should be logged in \ No newline at end of file + Given I am at the homepage + And I should be logged in -- libgit2 0.21.2