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
10d8e1e2
Commit
10d8e1e2
authored
Nov 25, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests to use new dropdowns
parent
ba4572ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
app/assets/javascripts/members.js.es6
app/assets/javascripts/members.js.es6
+4
-2
features/steps/group/members.rb
features/steps/group/members.rb
+6
-1
features/steps/project/team_management.rb
features/steps/project/team_management.rb
+5
-1
No files found.
app/assets/javascripts/members.js.es6
View file @
10d8e1e2
...
@@ -10,14 +10,16 @@
...
@@ -10,14 +10,16 @@
addListeners() {
addListeners() {
const ldapPermissionsChangeBtns = document.querySelectorAll('.js-ldap-permissions');
const ldapPermissionsChangeBtns = document.querySelectorAll('.js-ldap-permissions');
const changeBtnLength = ldapPermissionsChangeBtns.length;
const ldapOverrideBtns = document.querySelectorAll('.js-ldap-override');
const ldapOverrideBtns = document.querySelectorAll('.js-ldap-override');
const overrideBtnLength = ldapOverrideBtns.length;
for (let i = 0
, changeBtnLength = ldapPermissionsChangeBtns.length; i < changeBtnLength; i++
) {
for (let i = 0
; i < changeBtnLength; i += 1
) {
const btn = ldapPermissionsChangeBtns[i];
const btn = ldapPermissionsChangeBtns[i];
btn.addEventListener('click', this.showLDAPPermissionsWarning.bind(this));
btn.addEventListener('click', this.showLDAPPermissionsWarning.bind(this));
}
}
for (let i = 0
, overrideBtnLength = ldapOverrideBtns.length; i < overrideBtnLength; i++
) {
for (let i = 0
; i < overrideBtnLength; i += 1
) {
const btn = ldapOverrideBtns[i];
const btn = ldapOverrideBtns[i];
btn.addEventListener('click', this.toggleMemberAccessToggle.bind(this));
btn.addEventListener('click', this.toggleMemberAccessToggle.bind(this));
}
}
...
...
features/steps/group/members.rb
View file @
10d8e1e2
...
@@ -117,7 +117,12 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
...
@@ -117,7 +117,12 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
member
=
mary_jane_member
member
=
mary_jane_member
page
.
within
"#group_member_
#{
member
.
id
}
"
do
page
.
within
"#group_member_
#{
member
.
id
}
"
do
select
'Developer'
,
from:
"member_access_level_
#{
member
.
id
}
"
click_button
member
.
human_access
page
.
within
'.dropdown-menu'
do
click_link
'Developer'
end
wait_for_ajax
wait_for_ajax
end
end
end
end
...
...
features/steps/project/team_management.rb
View file @
10d8e1e2
...
@@ -65,7 +65,11 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
...
@@ -65,7 +65,11 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
user
=
User
.
find_by
(
name:
'Dmitriy'
)
user
=
User
.
find_by
(
name:
'Dmitriy'
)
project_member
=
project
.
project_members
.
find_by
(
user_id:
user
.
id
)
project_member
=
project
.
project_members
.
find_by
(
user_id:
user
.
id
)
page
.
within
"#project_member_
#{
project_member
.
id
}
"
do
page
.
within
"#project_member_
#{
project_member
.
id
}
"
do
select
"Reporter"
,
from:
"member_access_level_
#{
project_member
.
id
}
"
click_button
project_member
.
human_access
page
.
within
'.dropdown-menu'
do
click_link
'Reporter'
end
end
end
end
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