summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/1_manage/login/register_spec.rb
blob: fb6b493755485280848045e09894983ac4b1f8b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# frozen_string_literal: true

module QA
  shared_examples 'registration and login' do
    it 'user registers and logs in' do
      Runtime::Browser.visit(:gitlab, Page::Main::Login)

      Factory::Resource::User.fabricate!

      # TODO, since `Signed in successfully` message was removed
      # this is the only way to tell if user is signed in correctly.
      #
      Page::Main::Menu.perform do |menu|
        expect(menu).to have_personal_area
      end
    end
  end

  context :manage, :skip_signup_disabled do
    describe 'standard' do
      it_behaves_like 'registration and login'
    end
  end

  context :manage, :orchestrated, :ldap, :skip_signup_disabled do
    describe 'while LDAP is enabled' do
      it_behaves_like 'registration and login'
    end
  end
end