BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
830ccdfd
Commit
830ccdfd
authored
May 09, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing specs
parent
d84f1180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
update_issues_spec.rb
spec/features/issues/update_issues_spec.rb
+8
-6
No files found.
spec/features/issues/update_issues_spec.rb
View file @
830ccdfd
require
'rails_helper'
feature
'Multiple issue updating from issues#index'
,
feature:
true
do
include
WaitForAjax
let!
(
:project
)
{
create
(
:project
)
}
let!
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let!
(
:user
)
{
create
(
:user
)}
...
...
@@ -24,9 +26,7 @@ feature 'Multiple issue updating from issues#index', feature: true do
it
'should be set to open'
do
create_closed
visit
namespace_project_issues_path
(
project
.
namespace
,
project
)
find
(
'.issues-state-filters a'
,
text:
'Closed'
).
click
visit
namespace_project_issues_path
(
project
.
namespace
,
project
,
state:
'closed'
)
find
(
'#check_all_issues'
).
click
find
(
'.js-issue-status'
).
click
...
...
@@ -61,8 +61,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
click_link
'Unassigned'
click_update_issues_button
within
first
(
'.issue .controls'
)
do
sleep
1
# needed
page
.
within
first
(
'.issue .controls'
)
do
expect
(
page
).
to
have_no_selector
(
'.author_link'
)
end
end
...
...
@@ -95,7 +95,8 @@ feature 'Multiple issue updating from issues#index', feature: true do
find
(
'.dropdown-menu-milestone a'
,
text:
"No Milestone"
).
click
click_update_issues_button
expect
(
first
(
'.issue'
)).
not_to
have_content
milestone
.
title
sleep
1
# needed
expect
(
first
(
'.issue'
)).
to_not
have_content
milestone
.
title
end
end
...
...
@@ -113,5 +114,6 @@ feature 'Multiple issue updating from issues#index', feature: true do
def
click_update_issues_button
find
(
'.update_selected_issues'
).
click
wait_for_ajax
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