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
4480491e
Commit
4480491e
authored
Sep 23, 2019
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for issues with multiple assignees
parent
d2816027
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
156 additions
and
0 deletions
+156
-0
qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/four_assignees_spec.rb
...plan/multiple_assignees_for_issues/four_assignees_spec.rb
+47
-0
qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/more_than_four_assignees_spec.rb
...ple_assignees_for_issues/more_than_four_assignees_spec.rb
+70
-0
qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/two_assignees_spec.rb
..._plan/multiple_assignees_for_issues/two_assignees_spec.rb
+39
-0
No files found.
qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/four_assignees_spec.rb
0 → 100644
View file @
4480491e
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Multiple assignees per issue'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
user_1
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
user_2
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_2
,
Runtime
::
Env
.
gitlab_qa_password_2
)
user_3
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_3
,
Runtime
::
Env
.
gitlab_qa_password_3
)
user_4
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_4
,
Runtime
::
Env
.
gitlab_qa_password_4
)
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
resource
|
resource
.
name
=
'project-to-test-issue-with-multiple-assignees'
end
project
.
add_member
(
user_1
)
project
.
add_member
(
user_2
)
project
.
add_member
(
user_3
)
project
.
add_member
(
user_4
)
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
title
=
issue
.
title
=
'issue-to-test-multiple-assignees'
issue
.
project
=
project
issue
.
assignee_ids
=
[
user_1
.
id
,
user_2
.
id
,
user_3
.
id
,
user_4
.
id
]
end
project
.
visit!
end
it
'shows four assignees in the issues list'
do
Page
::
Project
::
Menu
.
perform
(
&
:click_issues
)
Page
::
Project
::
Issue
::
Index
.
perform
do
|
index
|
expect
(
index
.
assignee_link_count
).
to
be
4
end
end
end
end
end
qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/more_than_four_assignees_spec.rb
0 → 100644
View file @
4480491e
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Multiple assignees per issue'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
user_1
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
user_2
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_2
,
Runtime
::
Env
.
gitlab_qa_password_2
)
user_3
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_3
,
Runtime
::
Env
.
gitlab_qa_password_3
)
user_4
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_4
,
Runtime
::
Env
.
gitlab_qa_password_4
)
user_5
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_5
,
Runtime
::
Env
.
gitlab_qa_password_5
)
user_6
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_6
,
Runtime
::
Env
.
gitlab_qa_password_6
)
@project
=
Resource
::
Project
.
fabricate_via_api!
do
|
resource
|
resource
.
name
=
'project-to-test-issue-with-multiple-assignees'
end
@project
.
add_member
(
user_1
)
@project
.
add_member
(
user_2
)
@project
.
add_member
(
user_3
)
@project
.
add_member
(
user_4
)
@project
.
add_member
(
user_5
)
@project
.
add_member
(
user_6
)
@issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
title
=
issue
.
title
=
'issue-to-test-multiple-assignees'
issue
.
project
=
@project
issue
.
assignee_ids
=
[
user_1
.
id
,
user_2
.
id
,
user_3
.
id
,
user_4
.
id
,
user_5
.
id
,
user_6
.
id
]
end
end
it
'shows the first three assignees and a +n sign in the issues list'
do
@project
.
visit!
Page
::
Project
::
Menu
.
perform
(
&
:click_issues
)
Page
::
Project
::
Issue
::
Index
.
perform
do
|
index
|
expect
(
index
.
assignee_link_count
).
to
be
3
expect
(
index
.
avatar_counter
).
to
be_visible
expect
(
index
.
avatar_counter
).
to
have_content
(
'+3'
)
end
end
it
'shows the first five assignees and a +n more link in the issue page'
do
@issue
.
visit!
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
expect
(
show
.
avatar_image_count
).
to
be
5
expect
(
show
.
more_assignees_link
).
to
be_visible
expect
(
show
.
more_assignees_link
).
to
have_content
(
'+ 1 more'
)
show
.
toggle_more_assignees_link
expect
(
show
.
avatar_image_count
).
to
be
6
expect
(
show
.
more_assignees_link
).
to
have_content
(
'- show less'
)
end
end
end
end
end
qa/qa/specs/features/ee/browser_ui/2_plan/multiple_assignees_for_issues/two_assignees_spec.rb
0 → 100644
View file @
4480491e
# frozen_string_literal: true
module
QA
context
'Plan'
do
describe
'Multiple assignees per issue'
do
before
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
perform
(
&
:sign_in_using_credentials
)
user_1
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
@user_2
=
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_2
,
Runtime
::
Env
.
gitlab_qa_password_2
)
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
resource
|
resource
.
name
=
'project-to-test-issue-with-multiple-assignees'
end
project
.
add_member
(
user_1
)
project
.
add_member
(
@user_2
)
@issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
.
title
=
issue
.
title
=
'issue-to-test-multiple-assignees'
issue
.
project
=
project
issue
.
assignee_ids
=
[
user_1
.
id
]
end
end
it
'assigns one more user to an issue via the browser UI'
do
@issue
.
visit!
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
show
.
assign
(
@user_2
)
expect
(
show
.
avatar_image_count
).
to
be
2
expect
(
show
.
assignee_title
).
to
have_content
'2 Assignees'
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