From 24369b49dca3045a6193246c1a96f76aeb9e61e8 Mon Sep 17 00:00:00 2001 From: Walmyr Lima Date: Thu, 18 Jul 2019 14:40:37 +0200 Subject: 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. --- .../specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qa') diff --git a/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb b/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb index 24dcb32f63f..694a3ffb54b 100644 --- a/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb +++ b/qa/qa/specs/features/browser_ui/2_plan/issue/issue_suggestions_spec.rb @@ -5,7 +5,7 @@ module QA describe 'issue suggestions' do 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) Page::Main::Login.perform(&:sign_in_using_credentials) @@ -20,7 +20,9 @@ module QA end project.visit! + end + it 'user sees issue suggestions when creating a new issue' do Page::Project::Show.perform(&:go_to_new_issue) Page::Project::Issue::New.perform do |new_issue_page| new_issue_page.add_title("issue") -- cgit v1.2.3