Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f5460100
Commit
f5460100
authored
Mar 22, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spinach test from features/groups.feature
parent
2622beb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
ee/spec/features/groups/ldap_group_links_spec.rb
ee/spec/features/groups/ldap_group_links_spec.rb
+15
-1
features/steps/shared/paths.rb
features/steps/shared/paths.rb
+0
-4
No files found.
ee/spec/features/groups/ldap_group_links_spec.rb
View file @
f5460100
require
'spec_helper'
feature
'Edit group settings'
,
:js
do
include
Select2Helper
given
(
:user
)
{
create
(
:user
)
}
given
(
:group
)
{
create
(
:group
,
path:
'foo'
)
}
...
...
@@ -21,6 +23,18 @@ feature 'Edit group settings', :js do
visit
group_ldap_group_links_path
(
group
)
end
scenario
'adds new LDAP synchronization'
,
:js
do
page
.
within
(
'form#new_ldap_group_link'
)
do
select2
'my-group-cn'
,
from:
'#ldap_group_link_cn'
select
'Developer'
,
from:
'ldap_group_link_group_access'
click_button
'Add synchronization'
end
expect
(
page
).
not_to
have_content
(
'No LDAP synchronizations'
)
expect
(
page
).
to
have_content
(
'As Developer on ldap server'
)
end
scenario
'shows the LDAP filter section'
do
choose
(
'sync_method_filter'
)
...
...
@@ -37,7 +51,7 @@ feature 'Edit group settings', :js do
end
end
context
'when the LDAP group sync filter feature is available'
do
context
'when the LDAP group sync filter feature is
not
available'
do
before
do
stub_licensed_features
(
ldap_group_sync_filter:
false
)
...
...
features/steps/shared/paths.rb
View file @
f5460100
...
...
@@ -52,10 +52,6 @@ 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 "Owned" projects page'
do
visit
projects_group_path
(
Group
.
find_by
(
name:
"Owned"
))
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment