Commit 713cc99a authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa/be-explicit-when-fabricating-resources-via-api' into 'master'

Make tests explicitly fabricate resources via the API

See merge request gitlab-org/gitlab-ce!30515
parents 8a33f51d a20f9796
...@@ -7,15 +7,15 @@ module QA ...@@ -7,15 +7,15 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
source_group = Resource::Group.fabricate! do |group| source_group = Resource::Group.fabricate_via_api! do |group|
group.path = 'source-group' group.path = 'source-group'
end end
target_group = Resource::Group.fabricate! do |group| target_group = Resource::Group.fabricate_via_api! do |group|
group.path = 'target-group' group.path = 'target-group'
end end
project = Resource::Project.fabricate! do |project| project = Resource::Project.fabricate_via_api! do |project|
project.group = source_group project.group = source_group
project.name = 'transfer-project' project.name = 'transfer-project'
project.initialize_with_readme = true project.initialize_with_readme = true
......
...@@ -9,7 +9,7 @@ module QA ...@@ -9,7 +9,7 @@ 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! do |resource| project = Resource::Project.fabricate_via_api! do |resource|
resource.name = 'add-member-project' resource.name = 'add-member-project'
end end
project.visit! project.visit!
......
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