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
4b522a89
Commit
4b522a89
authored
Nov 13, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add epics list feature specs
parent
3c9756ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
spec/ee/spec/features/epics/epics_list_spec.rb
spec/ee/spec/features/epics/epics_list_spec.rb
+54
-0
No files found.
spec/ee/spec/features/epics/epics_list_spec.rb
0 → 100644
View file @
4b522a89
require
'spec_helper'
describe
'epics list'
,
:js
do
let
(
:group
)
{
create
(
:group
,
:public
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
sign_in
(
user
)
end
context
'when epics exist for the group'
do
let!
(
:epics
)
{
create_list
(
:epic
,
2
,
group:
group
)
}
before
do
visit
group_epics_path
(
group
)
end
it
'shows the epics in the navigation sidebar'
do
expect
(
first
(
'.nav-sidebar .active a .nav-item-name'
)).
to
have_content
(
'Epics'
)
expect
(
first
(
'.nav-sidebar .active a .count'
)).
to
have_content
(
'2'
)
end
it
'renders the list correctly'
do
page
.
within
(
'.page-with-new-nav .content'
)
do
expect
(
find
(
'.top-area'
)).
to
have_content
(
'All 2'
)
within
(
'.issuable-list'
)
do
expect
(
page
).
to
have_content
(
epics
.
first
.
title
)
expect
(
page
).
to
have_content
(
epics
.
second
.
title
)
end
end
end
it
'renders the epic detail correctly after clicking the link'
do
page
.
within
(
'.page-with-new-nav .content .issuable-list'
)
do
click_link
(
epics
.
first
.
title
)
end
wait_for_requests
expect
(
page
.
find
(
'.issuable-details h2.title'
)).
to
have_content
(
epics
.
first
.
title
)
end
end
context
'when no epics exist for the group'
do
it
'renders the empty list page'
do
visit
group_epics_path
(
group
)
within
(
'#content-body'
)
do
expect
(
find
(
'.empty-state h4'
))
.
to
have_content
(
'Epics let you manage your portfolio of projects more efficiently and with less effort'
)
end
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