BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
0 deletions
+46
-0
groups.feature
features/groups.feature
+7
-0
team_management.feature
features/project/team_management.feature
+6
-0
groups.rb
features/steps/groups.rb
+17
-0
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
...
@@ -55,6 +55,13 @@ Feature: Groups
When
I select
"Mike"
as
"Reporter"
When
I select
"Mike"
as
"Reporter"
Then
I should see
"Mike"
in team list 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
# Leave
@javascript
@javascript
...
...
features/project/team_management.feature
View file @
8949af0c
...
@@ -18,6 +18,12 @@ Feature: Project Team Management
...
@@ -18,6 +18,12 @@ Feature: Project Team Management
Then
I should see
"Mike"
in team list as
"Reporter"
Then
I should see
"Mike"
in team list as
"Reporter"
@javascript
@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
Scenario
:
Update user access
Given
I should see
"Sam"
in team list as
"Developer"
Given
I should see
"Sam"
in team list as
"Developer"
And
I change
"Sam"
role to
"Reporter"
And
I change
"Sam"
role to
"Reporter"
...
...
features/steps/groups.rb
View file @
8949af0c
...
@@ -31,6 +31,23 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
...
@@ -31,6 +31,23 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
end
end
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
step
'I should see group "Owned" projects list'
do
Group
.
find_by
(
name:
"Owned"
).
projects
.
each
do
|
project
|
Group
.
find_by
(
name:
"Owned"
).
projects
.
each
do
|
project
|
page
.
should
have_link
project
.
name
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
...
@@ -35,6 +35,22 @@ class Spinach::Features::ProjectTeamManagement < Spinach::FeatureSteps
end
end
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
step
'I should see "Sam" in team list as "Developer"'
do
within
".access-developer"
do
within
".access-developer"
do
page
.
should
have_content
(
'Sam'
)
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