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
2b116988
Commit
2b116988
authored
Jan 24, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for Epic
parent
487f0e7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
spec/ee/spec/features/boards/sidebar_spec.rb
spec/ee/spec/features/boards/sidebar_spec.rb
+32
-1
No files found.
spec/ee/spec/features/boards/sidebar_spec.rb
View file @
2b116988
...
...
@@ -5,7 +5,8 @@ describe 'Issue Boards', :js do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user2
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:group
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
group:
group
)
}
let!
(
:milestone
)
{
create
(
:milestone
,
project:
project
)
}
let!
(
:development
)
{
create
(
:label
,
project:
project
,
name:
'Development'
)
}
let!
(
:stretch
)
{
create
(
:label
,
project:
project
,
name:
'Stretch'
)
}
...
...
@@ -141,6 +142,36 @@ describe 'Issue Boards', :js do
end
end
context
'epic'
do
before
do
stub_licensed_features
(
epics:
true
)
visit
project_board_path
(
project
,
board
)
wait_for_requests
end
context
'when the issue is not associated with an epic'
do
it
'displays `None` for value of epic'
do
click_card
(
card1
)
wait_for_requests
expect
(
find
(
'.js-epic-label'
).
text
).
to
have_content
(
'None'
)
end
end
context
'when the issue is associated with an epic'
do
let
(
:epic
)
{
create
(
:epic
,
group:
group
)
}
let!
(
:epic_issue
)
{
create
(
:epic_issue
,
issue:
issue1
,
epic:
epic
)
}
it
'displays name of epic and links to it'
do
click_card
(
card1
)
wait_for_requests
expect
(
find
(
'.js-epic-label'
)).
to
have_link
(
epic
.
title
,
href:
epic_path
(
epic
))
end
end
end
context
'weight'
do
it
'displays weight async'
do
click_card
(
card1
)
...
...
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