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
1402b79b
Commit
1402b79b
authored
May 01, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] Add multiple assignee form specs
parent
6e5a7a2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+36
-0
No files found.
spec/features/issues/form_spec.rb
View file @
1402b79b
...
...
@@ -22,6 +22,42 @@ describe 'New/edit issue', feature: true, js: true do
visit
new_namespace_project_issue_path
(
project
.
namespace
,
project
)
end
describe
'multiple assignees'
do
before
do
click_button
'Unassigned'
end
it
'unselects other assignees when unassigned is selected'
do
page
.
within
'.dropdown-menu-user'
do
click_link
user2
.
name
end
page
.
within
'.dropdown-menu-user'
do
click_link
'Unassigned'
end
page
.
within
'.js-assignee-search'
do
expect
(
page
).
to
have_content
'Unassigned'
end
expect
(
find
(
'input[name="issue[assignee_ids][]"]'
,
visible:
false
).
value
).
to
match
(
'0'
)
end
it
'toggles assign to me when current user is selected and unselected'
do
page
.
within
'.dropdown-menu-user'
do
click_link
user
.
name
end
expect
(
find
(
'a'
,
text:
'Assign to me'
,
visible:
false
)).
not_to
be_visible
page
.
within
'.dropdown-menu-user'
do
click_link
user
.
name
end
expect
(
find
(
'a'
,
text:
'Assign to me'
)).
to
be_visible
end
end
it
'allows user to create new issue'
do
fill_in
'issue_title'
,
with:
'title'
fill_in
'issue_description'
,
with:
'title'
...
...
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