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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
a72bc103
Commit
a72bc103
authored
May 08, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add spec
parent
dbbe15e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
spec/features/issues/form_spec.rb
spec/features/issues/form_spec.rb
+16
-0
spec/features/issues/issue_sidebar_spec.rb
spec/features/issues/issue_sidebar_spec.rb
+10
-0
No files found.
spec/features/issues/form_spec.rb
View file @
a72bc103
...
...
@@ -23,6 +23,22 @@ describe 'New/edit issue', feature: true, js: true do
visit
new_namespace_project_issue_path
(
project
.
namespace
,
project
)
end
describe
'single assignee'
do
it
'hides assignee after selection'
do
click_button
'Unassigned'
page
.
within
(
'.dropdown-menu-user'
)
do
click_link
user
.
name
end
# TODO: Figure out a better way to wait for dropdown CSS hide
# animation to complete
sleep
0.3
expect
(
page
.
find
(
'.dropdown-menu-user'
,
visible:
false
)).
not_to
be_visible
end
end
describe
'multiple assignees'
do
before
do
click_button
'Unassigned'
...
...
spec/features/issues/issue_sidebar_spec.rb
View file @
a72bc103
...
...
@@ -57,6 +57,16 @@ feature 'Issue Sidebar', feature: true do
expect
(
page
.
find
(
'.dropdown-menu-user-link.is-active'
)).
to
have_content
(
user
.
name
)
end
end
context
'single assignee'
do
it
'hides assignee after selection'
do
page
.
within
(
'.dropdown-menu-user'
)
do
click_link
user
.
name
end
expect
(
page
.
find
(
'.block.assignee .selectbox'
,
visible:
false
)).
not_to
be_visible
end
end
end
context
'as a allowed user'
do
...
...
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