Commit d4c8e6f4 authored by Walmyr Lima's avatar Walmyr Lima

Simplify and shorten test code

parent c618698c
......@@ -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