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
iv
gitlab-ce
Commits
15108cba
Commit
15108cba
authored
May 10, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
812ae973
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
spec/features/issues/update_issues_spec.rb
spec/features/issues/update_issues_spec.rb
+9
-8
No files found.
spec/features/issues/update_issues_spec.rb
View file @
15108cba
...
...
@@ -42,7 +42,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
find
(
'#check_all_issues'
).
click
find
(
'.js-update-assignee'
).
click
click_update_assignee_button
find
(
'.dropdown-menu-user-link'
,
text:
user
.
username
).
click
click_update_issues_button
...
...
@@ -57,14 +57,11 @@ feature 'Multiple issue updating from issues#index', feature: true do
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
find
(
'#check_all_issues'
).
click
find
(
'.js-update-assignee'
).
click
click_update_assignee_button
click_link
'Unassigned'
click_update_issues_button
sleep
1
# needed
page
.
within
first
(
'.issue .controls'
)
do
expect
(
page
).
to
have_no_selector
(
'.author_link'
)
end
expect
(
find
(
'.issue:first-child .controls'
)).
not_to
have_css
(
'.author_link'
)
end
end
...
...
@@ -95,8 +92,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
find
(
'.dropdown-menu-milestone a'
,
text:
"No Milestone"
).
click
click_update_issues_button
sleep
1
# needed
expect
(
first
(
'.issue'
)).
to_not
have_content
milestone
.
title
expect
(
find
(
'.issue:first-child'
)).
to_not
have_content
milestone
.
title
end
end
...
...
@@ -112,6 +108,11 @@ feature 'Multiple issue updating from issues#index', feature: true do
create
(
:issue
,
project:
project
,
milestone:
milestone
)
end
def
click_update_assignee_button
find
(
'.js-update-assignee'
).
click
wait_for_ajax
end
def
click_update_issues_button
find
(
'.update_selected_issues'
).
click
wait_for_ajax
...
...
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