summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/login/ldap_spec.rb
blob: 737f4d10053369708127a8f7cdad8979c9a5cbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module QA
  feature 'LDAP user login', :ldap do
    before do
      Runtime::Env.user_type = 'ldap'
    end

    scenario 'user logs in using LDAP credentials' do
      Runtime::Browser.visit(:gitlab, Page::Main::Login)
      Page::Main::Login.act { sign_in_using_credentials }

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