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
d4c8e6f4
Commit
d4c8e6f4
authored
Jan 13, 2020
by
Walmyr Lima
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify and shorten test code
parent
c618698c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
qa/qa/specs/features/ee/browser_ui/2_plan/epic/promote_issue_to_epic_spec.rb
...s/ee/browser_ui/2_plan/epic/promote_issue_to_epic_spec.rb
+1
-4
No files found.
qa/qa/specs/features/ee/browser_ui/2_plan/epic/promote_issue_to_epic_spec.rb
View file @
d4c8e6f4
...
@@ -8,12 +8,9 @@ module QA
...
@@ -8,12 +8,9 @@ module QA
it
'user promotes issue to an epic'
do
it
'user promotes issue to an epic'
do
Flow
::
Login
.
sign_in
Flow
::
Login
.
sign_in
group
=
Resource
::
Group
.
fabricate_via_api!
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
=
Resource
::
Project
.
fabricate_via_api!
do
|
project
|
project
.
name
=
'promote-issue-to-epic'
project
.
name
=
'promote-issue-to-epic'
project
.
description
=
'Project to promote issue to epic'
project
.
description
=
'Project to promote issue to epic'
project
.
group
=
group
end
end
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
issue
=
Resource
::
Issue
.
fabricate_via_api!
do
|
issue
|
...
@@ -35,7 +32,7 @@ module QA
...
@@ -35,7 +32,7 @@ module QA
show
.
comment
(
'/promote '
)
show
.
comment
(
'/promote '
)
end
end
group
.
visit!
project
.
group
.
visit!
Page
::
Group
::
Menu
.
perform
(
&
:click_group_epics_link
)
Page
::
Group
::
Menu
.
perform
(
&
:click_group_epics_link
)
QA
::
EE
::
Page
::
Group
::
Epic
::
Index
.
perform
do
|
index
|
QA
::
EE
::
Page
::
Group
::
Epic
::
Index
.
perform
do
|
index
|
expect
(
index
).
to
have_epic_title
(
issue_title
)
expect
(
index
).
to
have_epic_title
(
issue_title
)
...
...
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