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
a38dfc98
Commit
a38dfc98
authored
May 11, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature spec for issues pagination
parent
7c60b524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
spec/features/groups/issues_spec.rb
spec/features/groups/issues_spec.rb
+21
-0
No files found.
spec/features/groups/issues_spec.rb
View file @
a38dfc98
...
...
@@ -186,4 +186,25 @@ describe 'Group issues page' do
end
end
end
context
'issues pagination'
do
let
(
:user_in_group
)
{
create
(
:group_member
,
:maintainer
,
user:
create
(
:user
),
group:
group
).
user
}
let!
(
:issues
)
do
(
1
..
25
).
to_a
.
map
{
|
index
|
create
(
:issue
,
project:
project
,
title:
"Issue
#{
index
}
"
)
}
end
before
do
sign_in
(
user_in_group
)
visit
issues_group_path
(
group
)
end
it
'shows the pagination'
do
expect
(
page
).
to
have_selector
(
'.gl-pagination'
)
end
it
'first pagination item is active'
do
expect
(
page
).
to
have_css
(
".js-first-button a.page-link.active"
)
end
end
end
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