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
59207ea0
Commit
59207ea0
authored
Apr 06, 2019
by
charlieablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close dropdown menu in spec
parent
f10f9540
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
spec/features/boards/sidebar_spec.rb
spec/features/boards/sidebar_spec.rb
+7
-1
No files found.
spec/features/boards/sidebar_spec.rb
View file @
59207ea0
...
@@ -22,7 +22,6 @@ describe 'Issue Boards', :js do
...
@@ -22,7 +22,6 @@ describe 'Issue Boards', :js do
end
end
before
do
before
do
stub_licensed_features
(
multiple_issue_assignees:
false
)
project
.
add_maintainer
(
user
)
project
.
add_maintainer
(
user
)
sign_in
(
user
)
sign_in
(
user
)
...
@@ -121,6 +120,12 @@ describe 'Issue Boards', :js do
...
@@ -121,6 +120,12 @@ describe 'Issue Boards', :js do
card_two
=
find
(
'.board:nth-child(2)'
).
find
(
'.board-card:nth-child(2)'
)
card_two
=
find
(
'.board:nth-child(2)'
).
find
(
'.board-card:nth-child(2)'
)
click_card
(
card_two
)
click_card
(
card_two
)
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'
...
@@ -130,6 +135,7 @@ describe 'Issue Boards', :js do
...
@@ -130,6 +135,7 @@ describe 'Issue Boards', :js do
click_link
'Unassigned'
click_link
'Unassigned'
end
end
close_dropdown_menu_if_visible
wait_for_requests
wait_for_requests
expect
(
page
).
to
have_content
(
'No assignee'
)
expect
(
page
).
to
have_content
(
'No assignee'
)
...
...
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