diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2019-06-26 18:02:59 +0300 |
---|---|---|
committer | Jan Provaznik <jprovaznik@gitlab.com> | 2019-06-26 18:02:59 +0300 |
commit | 8c89668d7d5a34bc7910d7b40aff2ef68739ed28 (patch) | |
tree | d334400d4a7cb677f6634734ab8cb5718b1354dc | |
parent | 7a22580aba0c466d9603eb1b7933559711eea582 (diff) | |
parent | d85e9965ea78edde5d364f144bb333f7a1e47543 (diff) |
Merge branch 'rj-fix-master' into 'master'
Stub manual_sorting flag
Closes #63756
See merge request gitlab-org/gitlab-ce!30089
-rw-r--r-- | spec/features/groups/issues_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/features/groups/issues_spec.rb b/spec/features/groups/issues_spec.rb index 2e7525e0513..f390627405a 100644 --- a/spec/features/groups/issues_spec.rb +++ b/spec/features/groups/issues_spec.rb @@ -102,6 +102,10 @@ 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') } @@ -138,10 +142,12 @@ describe 'Group issues page' do to_index: 2, list_to_index: 0) + wait_for_requests + page.within('.manual-ordering') do expect(find('.issue:nth-child(1) .title')).to have_content('Issue #2') - expect(find('.issue:nth-child(2) .title')).to have_content('Issue #1') - expect(find('.issue:nth-child(3) .title')).to have_content('Issue #3') + expect(find('.issue:nth-child(2) .title')).to have_content('Issue #3') + expect(find('.issue:nth-child(3) .title')).to have_content('Issue #1') end end end |