diff options
author | Nermin Vehabovic <nermin.vehabovic90@gmail.com> | 2019-05-04 16:16:47 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-05-04 16:16:47 +0000 |
commit | 0a89c08c055576a192754e9bce368231e2d0d13c (patch) | |
tree | 6b9e9aa61a7c86e983a7b72287950d9117530327 /spec/features/issuables | |
parent | 08d1cc5c2a30868979a0d3ffc6327020d8e539e4 (diff) | |
download | gitlab-ce-0a89c08c055576a192754e9bce368231e2d0d13c.tar.gz |
Resolve "Sort by due date and popularity in both directions"
Diffstat (limited to 'spec/features/issuables')
-rw-r--r-- | spec/features/issuables/sorting_list_spec.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/spec/features/issuables/sorting_list_spec.rb b/spec/features/issuables/sorting_list_spec.rb index 0601dd47c03..3a46a4e0167 100644 --- a/spec/features/issuables/sorting_list_spec.rb +++ b/spec/features/issuables/sorting_list_spec.rb @@ -86,26 +86,26 @@ describe 'Sort Issuable List' do expect(last_merge_request).to include(first_created_issuable.title) end end + end - context 'custom sorting' do - let(:issuable_type) { :merge_request } + context 'custom sorting' do + let(:issuable_type) { :merge_request } - it 'supports sorting in asc and desc order' do - visit_merge_requests_with_state(project, 'open') + it 'supports sorting in asc and desc order' do + visit_merge_requests_with_state(project, 'open') - page.within('.issues-other-filters') do - click_button('Created date') - click_link('Last updated') - end + page.within('.issues-other-filters') do + click_button('Created date') + click_link('Last updated') + end - expect(first_merge_request).to include(last_updated_issuable.title) - expect(last_merge_request).to include(first_updated_issuable.title) + expect(first_merge_request).to include(last_updated_issuable.title) + expect(last_merge_request).to include(first_updated_issuable.title) - find('.issues-other-filters .filter-dropdown-container .qa-reverse-sort').click + find('.issues-other-filters .filter-dropdown-container .qa-reverse-sort').click - expect(first_merge_request).to include(first_updated_issuable.title) - expect(last_merge_request).to include(last_updated_issuable.title) - end + expect(first_merge_request).to include(first_updated_issuable.title) + expect(last_merge_request).to include(last_updated_issuable.title) end end end |