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
62a5a6b6
Commit
62a5a6b6
authored
Jun 26, 2019
by
Rajat Jain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use relative position to order issues
parent
2b00b61e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
spec/features/groups/issues_spec.rb
spec/features/groups/issues_spec.rb
+4
-13
No files found.
spec/features/groups/issues_spec.rb
View file @
62a5a6b6
...
...
@@ -102,13 +102,9 @@ describe 'Group issues page' do
end
context
'manual ordering'
do
before
do
stub_feature_flags
(
manual_sorting:
true
)
end
let!
(
:issue1
)
{
create
(
:issue
,
project:
project
,
title:
'Issue #1'
)
}
let!
(
:issue2
)
{
create
(
:issue
,
project:
project
,
title:
'Issue #2'
)
}
let!
(
:issue3
)
{
create
(
:issue
,
project:
project
,
title:
'Issue #3'
)
}
let!
(
:issue1
)
{
create
(
:issue
,
project:
project
,
title:
'Issue #1'
,
relative_position:
1
)
}
let!
(
:issue2
)
{
create
(
:issue
,
project:
project
,
title:
'Issue #2'
,
relative_position:
2
)
}
let!
(
:issue3
)
{
create
(
:issue
,
project:
project
,
title:
'Issue #3'
,
relative_position:
3
)
}
it
'displays all issues'
do
visit
issues_group_path
(
group
,
sort:
'relative_position'
)
...
...
@@ -136,13 +132,8 @@ describe 'Group issues page' do
visit
issues_group_path
(
group
,
sort:
'relative_position'
)
drag_to
(
selector:
'.manual-ordering'
,
scrollable:
'#board-app'
,
list_from_index:
0
,
from_index:
0
,
to_index:
2
,
list_to_index:
0
)
wait_for_requests
to_index:
2
)
page
.
within
(
'.manual-ordering'
)
do
expect
(
find
(
'.issue:nth-child(1) .title'
)).
to
have_content
(
'Issue #2'
)
...
...
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