Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-21 06:10:16 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-21 06:10:16 +0300
commitf2eb66fef8aa8cebea25bc9e671a1f146514682f (patch)
treeef3f5ad9803bb211acdfd9f0f013c987f43d8e97 /spec/features/issuables
parentc7a46b04196859929e8e4c04fbcbf8490f228edf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/issuables')
-rw-r--r--spec/features/issuables/sorting_list_spec.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/features/issuables/sorting_list_spec.rb b/spec/features/issuables/sorting_list_spec.rb
index ff92fe369d4..d065e96885c 100644
--- a/spec/features/issuables/sorting_list_spec.rb
+++ b/spec/features/issuables/sorting_list_spec.rb
@@ -10,10 +10,6 @@ RSpec.describe 'Sort Issuable List' do
let(:first_updated_issuable) { issuables.order_updated_asc.first }
let(:last_updated_issuable) { issuables.order_updated_desc.first }
- before do
- stub_feature_flags(vue_issuables_list: false)
- end
-
context 'for merge requests' do
include MergeRequestHelpers
@@ -147,7 +143,7 @@ RSpec.describe 'Sort Issuable List' do
let(:issuable_type) { :issue }
it 'is "created date"' do
- visit_issues_with_state(project, 'open')
+ visit_issues_with_state(project, 'opened')
expect(find('.filter-dropdown-container')).to have_content('Created date')
expect(first_issue).to include(last_created_issuable.title)
@@ -179,11 +175,11 @@ RSpec.describe 'Sort Issuable List' do
end
end
- context 'when the sort in the URL is id_desc' do
+ context 'when the sort in the URL is created_date', :js do
let(:issuable_type) { :issue }
before do
- visit_issues(project, sort: 'id_desc')
+ visit_issues(project, sort: 'created_date')
end
it 'shows the sort order as created date' do
@@ -194,11 +190,11 @@ RSpec.describe 'Sort Issuable List' do
end
end
- context 'custom sorting' do
+ context 'custom sorting', :js do
let(:issuable_type) { :issue }
it 'supports sorting in asc and desc order' do
- visit_issues_with_state(project, 'open')
+ visit_issues_with_state(project, 'opened')
page.within('.filter-dropdown-container') do
click_button('Created date')