Commit 24369b49 authored by Walmyr Lima's avatar Walmyr Lima

Better scope end-to-end test

Move test pre-conditions to before block, and leave only the test
steps and verifications in the it block.
parent 9967b2d1
...@@ -5,7 +5,7 @@ module QA ...@@ -5,7 +5,7 @@ module QA
describe 'issue suggestions' do describe 'issue suggestions' do
let(:issue_title) { 'Issue Lists are awesome' } let(:issue_title) { 'Issue Lists are awesome' }
it 'user sees issue suggestions when creating a new issue' do before do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials) Page::Main::Login.perform(&:sign_in_using_credentials)
...@@ -20,7 +20,9 @@ module QA ...@@ -20,7 +20,9 @@ module QA
end end
project.visit! project.visit!
end
it 'user sees issue suggestions when creating a new issue' do
Page::Project::Show.perform(&:go_to_new_issue) Page::Project::Show.perform(&:go_to_new_issue)
Page::Project::Issue::New.perform do |new_issue_page| Page::Project::Issue::New.perform do |new_issue_page|
new_issue_page.add_title("issue") new_issue_page.add_title("issue")
......
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