Commit 39e3e469 authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'simplify-and-shorten-test-2' into 'master'

Simplify and shorten test code

See merge request gitlab-org/gitlab!22920
parents 0427d7cf d4c8e6f4
......@@ -8,12 +8,9 @@ module QA
it 'user promotes issue to an epic' do
Flow::Login.sign_in
group = Resource::Group.fabricate_via_api!
project = Resource::Project.fabricate_via_api! do |project|
project.name = 'promote-issue-to-epic'
project.description = 'Project to promote issue to epic'
project.group = group
end
issue = Resource::Issue.fabricate_via_api! do |issue|
......@@ -35,7 +32,7 @@ module QA
show.comment('/promote ')
end
group.visit!
project.group.visit!
Page::Group::Menu.perform(&:click_group_epics_link)
QA::EE::Page::Group::Epic::Index.perform do |index|
expect(index).to have_epic_title(issue_title)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment