Commit 3b32ffb6 authored by Mark Lapierre's avatar Mark Lapierre

Merge branch 'standardize-project-fabrication-on-qa-plan-tests' into 'master'

Standardize project fabrication on QA Plan tests

See merge request gitlab-org/gitlab!24474
parents 061c2d4c b5444745
......@@ -8,8 +8,8 @@ module QA
end
let(:project) do
Resource::Project.fabricate_via_api! do |resource|
resource.name = 'email-notification-test'
Resource::Project.fabricate_via_api! do |project|
project.name = 'email-notification-test'
end
end
......
......@@ -21,8 +21,8 @@ module QA
Flow::Login.sign_in
project = Resource::Project.fabricate_via_api! do |resource|
resource.name = 'xss-test-for-mentions-project'
project = Resource::Project.fabricate_via_api! do |project|
project.name = 'xss-test-for-mentions-project'
end
Flow::Project.add_member(project: project, username: user.username)
......
......@@ -8,9 +8,9 @@ module QA
@user = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1)
project = Resource::Project.fabricate_via_api! do |resource|
resource.name = 'project-to-test-mention'
resource.visibility = 'private'
project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project-to-test-mention'
project.visibility = 'private'
end
project.add_member(@user)
......
......@@ -63,8 +63,8 @@ module QA
before do
@user = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1)
project = Resource::Project.fabricate_via_api! do |resource|
resource.name = 'project-to-test-assignee-issue-board-list'
project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project-to-test-assignee-issue-board-list'
end
project.add_member(@user)
......
......@@ -11,8 +11,8 @@ module QA
user_3 = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_3, Runtime::Env.gitlab_qa_password_3)
user_4 = Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_4, Runtime::Env.gitlab_qa_password_4)
project = Resource::Project.fabricate_via_api! do |resource|
resource.name = 'project-to-test-issue-with-multiple-assignees'
project = Resource::Project.fabricate_via_api! do |project|
project.name = 'project-to-test-issue-with-multiple-assignees'
end
project.add_member(user_1)
......
......@@ -4,8 +4,8 @@ module QA
context 'Plan', :reliable do
describe 'Multiple assignees per issue' do
let(:project) do
Resource::Project.fabricate_via_api! do |resource|
resource.name = 'project-to-test-issue-with-multiple-assignees'
Resource::Project.fabricate_via_api! do |project|
project.name = 'project-to-test-issue-with-multiple-assignees'
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