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
dc4e11e4
Commit
dc4e11e4
authored
Dec 03, 2018
by
Ramya Authappan
Committed by
Rémy Coutable
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Promoting issue to epic
parent
01860413
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
1 deletion
+50
-1
ee/app/views/groups/epics/_epic.html.haml
ee/app/views/groups/epics/_epic.html.haml
+1
-1
qa/qa/ee/page/group/epic/index.rb
qa/qa/ee/page/group/epic/index.rb
+8
-0
qa/qa/specs/features/browser_ui/2_plan/ee_epic/promote_issue_to_epic_spec.rb
...s/browser_ui/2_plan/ee_epic/promote_issue_to_epic_spec.rb
+41
-0
No files found.
ee/app/views/groups/epics/_epic.html.haml
View file @
dc4e11e4
...
...
@@ -3,7 +3,7 @@
.issuable-info-container
.issuable-main-info
.issue-title.title
%span
.issue-title-text
%span
.issue-title-text
.qa-epic-title-text
=
link_to
epic
.
title
,
epic_path
(
epic
)
.issuable-info
%span
.issuable-reference
...
...
qa/qa/ee/page/group/epic/index.rb
View file @
dc4e11e4
...
...
@@ -12,6 +12,10 @@ module QA
element
:create_epic_button
end
view
'ee/app/views/groups/epics/_epic.html.haml'
do
element
:epic_title_text
end
def
click_new_epic
click_element
:new_epic_button
end
...
...
@@ -23,6 +27,10 @@ module QA
def
create_new_epic
click_element
:create_epic_button
end
def
click_first_epic
all_elements
(
:epic_title_text
).
first
.
click
end
end
end
end
...
...
qa/qa/specs/features/browser_ui/2_plan/ee_epic/promote_issue_to_epic_spec.rb
0 → 100644
View file @
dc4e11e4
# frozen_string_literal: true
module
QA
context
'Plan'
,
:smoke
do
describe
'promote issue to epic'
do
let
(
:issue_title
)
{
"My Awesome Issue
#{
SecureRandom
.
hex
(
8
)
}
"
}
it
'user promotes issue to an epic'
do
Runtime
::
Browser
.
visit
(
:gitlab
,
Page
::
Main
::
Login
)
Page
::
Main
::
Login
.
act
{
sign_in_using_credentials
}
group
=
Resource
::
Group
.
fabricate!
project
=
Resource
::
Project
.
fabricate!
do
|
project
|
project
.
name
=
'promote-issue-to-epic'
project
.
description
=
'Project to promote issue to epic'
project
.
group
=
group
end
Resource
::
Issue
.
fabricate!
do
|
issue
|
issue
.
title
=
issue_title
issue
.
project
=
project
end
Page
::
Project
::
Issue
::
Show
.
perform
do
|
show
|
show
.
select_all_activities_filter
show
.
comment
(
'/promote'
)
expect
(
show
).
to
have_content
(
"promoted to epic"
)
end
group
.
visit!
QA
::
EE
::
Page
::
Group
::
Menu
.
perform
(
&
:go_to_group_epics
)
QA
::
EE
::
Page
::
Group
::
Epic
::
Index
.
perform
(
&
:click_first_epic
)
expect
(
page
).
to
have_content
(
issue_title
)
expect
(
page
).
to
have_content
(
/promoted from issue .* \(closed\)/
)
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