Commit 9d0c5965 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix ldap group sync test

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 633fb8ab
......@@ -56,6 +56,7 @@ Feature: Groups
And I should not see the "Remove avatar" button
Scenario: Add new LDAP synchronization
Given LDAP enabled
When I visit Group "Owned" LDAP settings page
And I add a new LDAP synchronization
Then I see a new LDAP synchronization listed
......
......@@ -313,6 +313,10 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
milestone: milestone2_project3
end
step 'LDAP enabled' do
Gitlab.config.ldap.stub(:enabled).and_return(true)
end
step 'I add a new LDAP synchronization' do
within('form#new_ldap_group_link') do
find('#ldap_group_link_cn', visible: false).set('my-group-cn')
......@@ -324,6 +328,6 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
step 'I see a new LDAP synchronization listed' do
expect(page).not_to have_content('No synchronizations yet')
expect(page).to have_content('my-group-cn as Developer')
expect(page).to have_content('As Developer on ldap server')
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment