summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajat Jain <rjain@gitlab.com>2019-06-26 21:14:41 +0530
committerRajat Jain <rjain@gitlab.com>2019-06-26 22:20:45 +0530
commit62a5a6b62108456a92d41df5cfe4b1ad311de538 (patch)
tree210ed14d4e9162a59a27a70c28e48d2c7b022c65
parent2b00b61eba758baf9d4242ba9c71f2319f8ec428 (diff)
downloadgitlab-ce-62a5a6b62108456a92d41df5cfe4b1ad311de538.tar.gz
Use relative position to order issuesrj-fix-spec
-rw-r--r--spec/features/groups/issues_spec.rb17
1 files changed, 4 insertions, 13 deletions
diff --git a/spec/features/groups/issues_spec.rb b/spec/features/groups/issues_spec.rb
index f390627405a..c21accac698 100644
--- a/spec/features/groups/issues_spec.rb
+++ b/spec/features/groups/issues_spec.rb
@@ -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')