Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1a034410
Commit
1a034410
authored
Aug 04, 2020
by
Eulyeon Ko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update outdated state constants
parent
1977c6a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
spec/features/issuables/sorting_list_spec.rb
spec/features/issuables/sorting_list_spec.rb
+5
-9
No files found.
spec/features/issuables/sorting_list_spec.rb
View file @
1a034410
...
...
@@ -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
,
'open
ed
'
)
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
,
'open
ed
'
)
page
.
within
(
'.filter-dropdown-container'
)
do
click_button
(
'Created date'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment