diff --git a/features/groups.feature b/features/groups.feature index 561f880c23..ea526be4f9 100644 --- a/features/groups.feature +++ b/features/groups.feature @@ -60,6 +60,7 @@ Feature: Groups When I visit Group "Owned" LDAP settings page And I add a new LDAP synchronization Then I see a new LDAP synchronization listed + And LDAP disabled # Leave diff --git a/features/steps/groups.rb b/features/steps/groups.rb index 0dd3d90da1..54b010fbfe 100644 --- a/features/steps/groups.rb +++ b/features/steps/groups.rb @@ -317,6 +317,10 @@ class Spinach::Features::Groups < Spinach::FeatureSteps Gitlab.config.ldap.stub(:enabled).and_return(true) end + step 'LDAP disabled' do + Gitlab.config.ldap.stub(:enabled).and_return(false) + 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')