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
Léo-Paul Géneau
gitlab-ce
Commits
f17875eb
Commit
f17875eb
authored
Mar 20, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE-port of 6571-single-codebase
Adds conditional to close assignee menu when visible in EE
parent
00e5d66d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
spec/features/issues_spec.rb
spec/features/issues_spec.rb
+11
-0
No files found.
spec/features/issues_spec.rb
View file @
f17875eb
...
@@ -497,12 +497,21 @@ describe 'Issues' do
...
@@ -497,12 +497,21 @@ describe 'Issues' do
it
'allows user to unselect themselves'
,
:js
do
it
'allows user to unselect themselves'
,
:js
do
issue2
=
create
(
:issue
,
project:
project
,
author:
user
)
issue2
=
create
(
:issue
,
project:
project
,
author:
user
)
visit
project_issue_path
(
project
,
issue2
)
visit
project_issue_path
(
project
,
issue2
)
def
close_dropdown_menu_if_visible
find
(
'.dropdown-menu-toggle'
,
visible: :all
).
tap
do
|
toggle
|
toggle
.
click
if
toggle
.
visible?
end
end
page
.
within
'.assignee'
do
page
.
within
'.assignee'
do
click_link
'Edit'
click_link
'Edit'
click_link
user
.
name
click_link
user
.
name
close_dropdown_menu_if_visible
page
.
within
'.value .author'
do
page
.
within
'.value .author'
do
expect
(
page
).
to
have_content
user
.
name
expect
(
page
).
to
have_content
user
.
name
end
end
...
@@ -510,6 +519,8 @@ describe 'Issues' do
...
@@ -510,6 +519,8 @@ describe 'Issues' do
click_link
'Edit'
click_link
'Edit'
click_link
user
.
name
click_link
user
.
name
close_dropdown_menu_if_visible
page
.
within
'.value .assign-yourself'
do
page
.
within
'.value .assign-yourself'
do
expect
(
page
).
to
have_content
"No assignee"
expect
(
page
).
to
have_content
"No assignee"
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