Commit 93ed9de1 authored by Walmyr Lima's avatar Walmyr Lima

Move details of e2e tests to the bottom

The code should be written like a newspaper, wherein the top we
have more high level information, and as we go down we have more
details.

So I'm moving the implementation details to the bottom to make the
test easier to read.
parent 5e9b683d
......@@ -5,15 +5,6 @@ module QA
describe 'Issue creation' do
let(:issue_title) { 'issue title' }
def create_issue
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
Resource::Issue.fabricate! do |issue|
issue.title = issue_title
end
end
it 'user creates an issue' do
create_issue
......@@ -46,6 +37,15 @@ module QA
end
end
end
def create_issue
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials }
Resource::Issue.fabricate! do |issue|
issue.title = issue_title
end
end
end
end
end
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