Welcome to mirror list, hosted at ThFree Co, Russian Federation.

registration_spec.rb « registrations « features « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a409b3934e0a3ebbc020442b86a130fc0374ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Registrations', feature_category: :system_access do
  context 'when the user visits the registration page when already signed in', :clean_gitlab_redis_sessions do
    let_it_be(:current_user) { create(:user) }

    before do
      sign_in(current_user)
    end

    it 'does not show an "You are already signed in" error message' do
      visit new_user_registration_path

      wait_for_requests

      expect(page).not_to have_content(I18n.t('devise.failure.already_authenticated'))
    end
  end
end