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
0ce0f28b
Commit
0ce0f28b
authored
May 02, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add rspec test for multiple assignees
parent
0431657f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
spec/features/boards/sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+26
-3
No files found.
spec/features/boards/sidebar_spec.rb
View file @
0ce0f28b
...
...
@@ -5,6 +5,7 @@ describe 'Issue Boards', feature: true, js: true do
include
WaitForVueResource
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:empty_project
,
:public
)
}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let!
(
:development
)
{
create
(
:label
,
project:
project
,
name:
'Development'
)
}
...
...
@@ -21,6 +22,7 @@ describe 'Issue Boards', feature: true, js: true do
Timecop
.
freeze
project
.
team
<<
[
user
,
:master
]
project
.
team
.
add_developer
(
user2
)
login_as
(
user
)
...
...
@@ -102,6 +104,26 @@ describe 'Issue Boards', feature: true, js: true do
expect
(
card
).
to
have_selector
(
'.avatar'
)
end
it
'adds multiple assignees'
do
click_card
(
card
)
page
.
within
(
'.assignee'
)
do
click_link
'Edit'
wait_for_ajax
page
.
within
(
'.dropdown-menu-user'
)
do
click_link
user
.
name
click_link
user2
.
name
end
expect
(
page
).
to
have_content
(
user
.
name
)
expect
(
page
).
to
have_content
(
user2
.
name
)
end
expect
(
card
.
all
(
'.avatar'
).
length
).
to
eq
(
2
)
end
it
'removes the assignee'
do
card_two
=
first
(
'.board'
).
find
(
'.card:nth-child(2)'
)
click_card
(
card_two
)
...
...
@@ -113,10 +135,11 @@ describe 'Issue Boards', feature: true, js: true do
page
.
within
(
'.dropdown-menu-user'
)
do
click_link
'Unassigned'
wait_for_vue_resource
end
find
(
'.dropdown-menu-toggle'
).
click
wait_for_vue_resource
expect
(
page
).
to
have_content
(
'No assignee'
)
end
...
...
@@ -129,7 +152,7 @@ describe 'Issue Boards', feature: true, js: true do
page
.
within
(
find
(
'.assignee'
))
do
expect
(
page
).
to
have_content
(
'No assignee'
)
click_link
'assign yourself'
find
(
'.btn-link'
,
text:
'assign yourself'
).
click
wait_for_vue_resource
...
...
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