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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
8949af0c
Commit
8949af0c
authored
Apr 10, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature tests for inviting members.
parent
405df435
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
0 deletions
+46
-0
features/groups.feature
features/groups.feature
+7
-0
features/project/team_management.feature
features/project/team_management.feature
+6
-0
features/steps/groups.rb
features/steps/groups.rb
+17
-0
features/steps/project/team_management.rb
features/steps/project/team_management.rb
+16
-0
No files found.
features/groups.feature
View file @
8949af0c
...
...
@@ -55,6 +55,13 @@ Feature: Groups
When
I select
"Mike"
as
"Reporter"
Then
I should see
"Mike"
in team list as
"Reporter"
@javascript
Scenario
:
Invite user to group
When
I visit group
"Owned"
members page
And
I click link
"Add members"
When
I select
"sjobs@apple.com"
as
"Reporter"
Then
I should see
"sjobs@apple.com"
in team list as invited
"Reporter"
# Leave
@javascript
...
...
features/project/team_management.feature
View file @
8949af0c
...
...
@@ -17,6 +17,12 @@ Feature: Project Team Management
And
I select
"Mike"
as
"Reporter"
Then
I should see
"Mike"
in team list as
"Reporter"
@javascript
Scenario
:
Invite user to project
Given
I click link
"Add members"
And
I select
"sjobs@apple.com"
as
"Reporter"
Then
I should see
"sjobs@apple.com"
in team list as invited
"Reporter"
@javascript
Scenario
:
Update user access
Given
I should see
"Sam"
in team list as
"Developer"
...
...
features/steps/groups.rb
View file @
8949af0c
...
...
@@ -31,6 +31,23 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
end
end
step
'I select "sjobs@apple.com" as "Reporter"'
do
within
".users-group-form"
do
select2
(
"sjobs@apple.com"
,
from:
"#user_ids"
,
multiple:
true
)
select
"Reporter"
,
from:
"access_level"
end
click_button
"Add users to group"
end
step
'I should see "sjobs@apple.com" in team list as invited "Reporter"'
do
within
'.well-list'
do
page
.
should
have_content
(
'sjobs@apple.com'
)
page
.
should
have_content
(
'invited'
)
page
.
should
have_content
(
'Reporter'
)
end
end
step
'I should see group "Owned" projects list'
do
Group
.
find_by
(
name:
"Owned"
).
projects
.
each
do
|
project
|
page
.
should
have_link
project
.
name
...
...
features/steps/project/team_management.rb
View file @
8949af0c
...
...
@@ -35,6 +35,22 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
end
end
step
'I select "sjobs@apple.com" as "Reporter"'
do
within
".users-project-form"
do
select2
(
"sjobs@apple.com"
,
from:
"#user_ids"
,
multiple:
true
)
select
"Reporter"
,
from:
"access_level"
end
click_button
"Add users to project"
end
step
'I should see "sjobs@apple.com" in team list as invited "Reporter"'
do
within
".access-reporter"
do
page
.
should
have_content
(
'sjobs@apple.com'
)
page
.
should
have_content
(
'invited'
)
page
.
should
have_content
(
'Reporter'
)
end
end
step
'I should see "Sam" in team list as "Developer"'
do
within
".access-developer"
do
page
.
should
have_content
(
'Sam'
)
...
...
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