diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-10 04:53:57 +0000 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-10 04:53:57 +0000 |
commit | 713cc99abc96e395bb498a3de072f1d748bf1cee (patch) | |
tree | 29fe4b255ec04fe396fbd7ccdb9c9f69c1104f83 /qa | |
parent | 8a33f51d2f5ce67e167deb21ffe7768c3d638dcf (diff) | |
parent | a20f97968cc44b2628ca4951955fb1acaf67cd82 (diff) | |
download | gitlab-ce-713cc99abc96e395bb498a3de072f1d748bf1cee.tar.gz |
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
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb | 6 | ||||
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb index a9de64e357a..2363836d5e3 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb @@ -7,15 +7,15 @@ module QA Runtime::Browser.visit(:gitlab, Page::Main::Login) 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' end - target_group = Resource::Group.fabricate! do |group| + target_group = Resource::Group.fabricate_via_api! do |group| group.path = 'target-group' end - project = Resource::Project.fabricate! do |project| + project = Resource::Project.fabricate_via_api! do |project| project.group = source_group project.name = 'transfer-project' project.initialize_with_readme = true diff --git a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb index d1747280227..f51c16f472c 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb @@ -9,7 +9,7 @@ module QA 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' end project.visit! |