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