Add integration test for new LDAP sync

parent 3cd35f05
......@@ -24,4 +24,4 @@
You can manage permission levels for individual group members in the Members tab.
.form-actions
= f.submit 'Add Synchronization', class: "btn btn-create"
\ No newline at end of file
= f.submit 'Add synchronization', class: "btn btn-create"
\ No newline at end of file
......@@ -55,6 +55,11 @@ Feature: Groups
Then I should not see group "Owned" avatar
And I should not see the "Remove avatar" button
Scenario: Add new LDAP synchronization
When I visit Group "Owned" LDAP settings page
And I add a new LDAP synchronization
Then I see a new LDAP synchronization listed
# Leave
@javascript
......
......@@ -285,4 +285,18 @@ class Groups < Spinach::FeatureSteps
author: current_user,
milestone: milestone2_project3
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')
# fill_in('LDAP Group cn', with: 'my-group-cn', visible: false)
select 'Developer', from: "ldap_group_link_group_access"
click_button 'Add synchronization'
end
end
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')
end
end
......@@ -41,6 +41,10 @@ module SharedPaths
visit edit_group_path(Group.find_by(name:"Owned"))
end
step 'I visit group "Owned" LDAP settings page' do
visit group_ldap_group_links_path(Group.find_by(name:"Owned"))
end
step 'I visit group "Guest" page' do
visit group_path(Group.find_by(name:"Guest"))
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