Merge branch 'qa/better-scode-test' into 'master'

Better scope end-to-end test

See merge request gitlab-org/gitlab-ce!30895
This commit is contained in:
Walmyr 2019-07-19 10:43:41 +00:00
commit 550ac6ef82

View file

@ -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
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")