diff options
author | Rajat Jain <rjain@gitlab.com> | 2019-06-26 18:44:41 +0300 |
---|---|---|
committer | Rajat Jain <rjain@gitlab.com> | 2019-06-26 19:50:45 +0300 |
commit | 62a5a6b62108456a92d41df5cfe4b1ad311de538 (patch) | |
tree | 210ed14d4e9162a59a27a70c28e48d2c7b022c65 /spec/features/groups | |
parent | 2b00b61eba758baf9d4242ba9c71f2319f8ec428 (diff) |
Use relative position to order issues
Diffstat (limited to 'spec/features/groups')
-rw-r--r-- | spec/features/groups/issues_spec.rb | 17 |
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') |