require "feature_helper"
require "api_test_helper"
describe "pages redirect with see other", type: :request do
  it "sets a see other for redirects" do
    stub_session_creation
    post "/SAML2/SSO", params: { "SAMLRequest" => "my-saml-request", "RelayState" => "my-relay-state" }
    expect(response.status).to eql 303
  end

  # HUB-113: Temporarily disabling to allow the perf team to analyze the data
  # it 'does not delete the new_visit flag' do
  #   stub_session_creation
  #   post '/SAML2/SSO', params: { 'SAMLRequest' => 'my-saml-request', 'RelayState' => 'my-relay-state' }
  #   expect(request.session['new_visit']).to eql true
  # end
end
