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
999f1848
Commit
999f1848
authored
Sep 02, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests update
parent
931d09f4
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
15 deletions
+16
-15
app/views/projects/project_members/_groups.html.haml
app/views/projects/project_members/_groups.html.haml
+1
-1
app/views/projects/project_members/_new_project_member.html.haml
...ws/projects/project_members/_new_project_member.html.haml
+1
-1
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+2
-0
features/steps/admin/projects.rb
features/steps/admin/projects.rb
+1
-1
features/steps/group/members.rb
features/steps/group/members.rb
+2
-2
features/steps/project/team_management.rb
features/steps/project/team_management.rb
+7
-8
spec/features/groups/members/owner_manages_access_requests_spec.rb
...ures/groups/members/owner_manages_access_requests_spec.rb
+1
-1
spec/features/projects/members/master_manages_access_requests_spec.rb
...s/projects/members/master_manages_access_requests_spec.rb
+1
-1
No files found.
app/views/projects/project_members/_groups.html.haml
View file @
999f1848
.panel.panel-default
.panel.panel-default
.project-members-groups
.panel-heading
Groups with access to
%strong
#{
@project
.
name
}
...
...
app/views/projects/project_members/_new_project_member.html.haml
View file @
999f1848
=
form_for
@project_member
,
as: :project_member
,
url:
namespace_project_project_members_path
(
@project
.
namespace
,
@project
)
do
|
f
|
=
form_for
@project_member
,
as: :project_member
,
url:
namespace_project_project_members_path
(
@project
.
namespace
,
@project
)
,
html:
{
class:
'users-project-form'
}
do
|
f
|
.row
.col-md-4.col-lg-6
=
users_select_tag
(
:user_ids
,
multiple:
true
,
class:
"input-full"
,
scope: :all
,
email_user:
true
)
...
...
app/views/shared/members/_member.html.haml
View file @
999f1848
...
...
@@ -79,3 +79,5 @@
%span
.visible-xs-block
Delete
=
icon
(
'trash'
,
class:
'hidden-xs'
)
-
else
%span
.member-access-text
=
member
.
human_access
features/steps/admin/projects.rb
View file @
999f1848
...
...
@@ -70,7 +70,7 @@ class Spinach::Features::AdminProjects < Spinach::FeatureSteps
select
"Developer"
,
from:
"access_level"
end
click_button
"Add
users
to project"
click_button
"Add to project"
end
step
'I should see current user as "Developer"'
do
...
...
features/steps/group/members.rb
View file @
999f1848
class
Spinach::Features::GroupMembers
<
Spinach
::
FeatureSteps
include
WaitForAjax
include
SharedAuthentication
include
SharedPaths
include
SharedGroup
...
...
@@ -116,9 +117,8 @@ class Spinach::Features::GroupMembers < Spinach::FeatureSteps
member
=
mary_jane_member
page
.
within
"#group_member_
#{
member
.
id
}
"
do
click_button
'Edit'
select
'Developer'
,
from:
"member_access_level_
#{
member
.
id
}
"
click_on
'Save'
wait_for_ajax
end
end
...
...
features/steps/project/team_management.rb
View file @
999f1848
...
...
@@ -22,7 +22,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
select2
(
user
.
id
,
from:
"#user_ids"
,
multiple:
true
)
select
"Reporter"
,
from:
"access_level"
end
click_button
"Add
users
to project"
click_button
"Add to project"
end
step
'I should see "Mike" in team list as "Reporter"'
do
...
...
@@ -36,10 +36,10 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
step
'I select "sjobs@apple.com" as "Reporter"'
do
page
.
within
".users-project-form"
do
select2
(
"sjobs@apple.com"
,
from:
"#user_ids"
,
multiple:
true
)
find
(
'#user_ids'
,
visible:
false
).
set
(
'sjobs@apple.com'
)
select
"Reporter"
,
from:
"access_level"
end
click_button
"Add
users
to project"
click_button
"Add to project"
end
step
'I should see "sjobs@apple.com" in team list as invited "Reporter"'
do
...
...
@@ -65,9 +65,7 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
user
=
User
.
find_by
(
name:
'Dmitriy'
)
project_member
=
project
.
project_members
.
find_by
(
user_id:
user
.
id
)
page
.
within
"#project_member_
#{
project_member
.
id
}
"
do
click_button
'Edit'
select
"Reporter"
,
from:
"member_access_level_
#{
project_member
.
id
}
"
click_button
"Save"
end
end
...
...
@@ -144,8 +142,9 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
end
step
'I should see "Opensource" group user listing'
do
expect
(
page
).
to
have_content
(
"Shared with OpenSource group, members with Master role (2)"
)
expect
(
page
).
to
have_content
(
@os_user1
.
name
)
expect
(
page
).
to
have_content
(
@os_user2
.
name
)
page
.
within
'.project-members-groups'
do
expect
(
page
).
to
have_content
(
'OpenSource'
)
expect
(
find
(
'select'
).
value
).
to
eq
(
'40'
)
end
end
end
spec/features/groups/members/owner_manages_access_requests_spec.rb
View file @
999f1848
...
...
@@ -41,7 +41,7 @@ feature 'Groups > Members > Owner manages access requests', feature: true do
def
expect_visible_access_request
(
group
,
user
)
expect
(
group
.
requesters
.
exists?
(
user_id:
user
)).
to
be_truthy
expect
(
page
).
to
have_content
"
#{
group
.
name
}
access requests
1"
expect
(
page
).
to
have_content
"
Users requesting access to
#{
group
.
name
}
1"
expect
(
page
).
to
have_content
user
.
name
end
end
spec/features/projects/members/master_manages_access_requests_spec.rb
View file @
999f1848
...
...
@@ -41,7 +41,7 @@ feature 'Projects > Members > Master manages access requests', feature: true do
def
expect_visible_access_request
(
project
,
user
)
expect
(
project
.
requesters
.
exists?
(
user_id:
user
)).
to
be_truthy
expect
(
page
).
to
have_content
"
#{
project
.
name
}
access requests
1"
expect
(
page
).
to
have_content
"
Users requesting access to
#{
project
.
name
}
1"
expect
(
page
).
to
have_content
user
.
name
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