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
Tatuya Kamada
gitlab-ce
Commits
1bb32a79
Commit
1bb32a79
authored
Mar 02, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tests for issues without a relative_position
parent
4fa8e0d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
spec/features/boards/issue_ordering_spec.rb
spec/features/boards/issue_ordering_spec.rb
+25
-0
No files found.
spec/features/boards/issue_ordering_spec.rb
View file @
1bb32a79
...
...
@@ -19,6 +19,31 @@ describe 'Issue Boards', :feature, :js do
login_as
(
user
)
end
context
'un-ordered issues'
do
let!
(
:issue4
)
{
create
(
:labeled_issue
,
project:
project
,
labels:
[
label
])
}
before
do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
wait_for_vue_resource
expect
(
page
).
to
have_selector
(
'.board'
,
count:
2
)
end
it
'has un-ordered issue as last issue'
do
page
.
within
(
first
(
'.board'
))
do
expect
(
all
(
'.card'
).
last
).
to
have_content
(
issue4
.
title
)
end
end
it
'moves un-ordered issue to top of list'
do
drag
(
from_index:
3
,
to_index:
0
)
page
.
within
(
first
(
'.board'
))
do
expect
(
first
(
'.card'
)).
to
have_content
(
issue4
.
title
)
end
end
end
context
'ordering in list'
do
before
do
visit
namespace_project_board_path
(
project
.
namespace
,
project
,
board
)
...
...
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