summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJennifer Louie <canadonut@gmail.com>2019-05-16 16:10:39 -0700
committerSanad Liaquat <sliaquat@gitlab.com>2019-05-20 18:25:28 +0500
commite6989b05d2eb223ac9efb35281ef04a1ccf22473 (patch)
treef2e44027dae93749de0b86e38065210903b9a850
parent170184e37ee346d09381f6303c36e04ab656ab15 (diff)
downloadgitlab-ce-qa-transfer-project-spec-shl.tar.gz
Create full_path attribute on Resource Groupqa-transfer-project-spec-shl
Revise test spec to reflect changes to Settings Main and Settings Advanced page objects Add # frozen_string_literal: true to spec
-rw-r--r--qa/qa/resource/group.rb4
-rw-r--r--qa/qa/specs/features/browser_ui/1_manage/group/transfer_project_spec.rb12
2 files changed, 11 insertions, 5 deletions
diff --git a/qa/qa/resource/group.rb b/qa/qa/resource/group.rb
index 0b567a474c8..44d9dc8f296 100644
--- a/qa/qa/resource/group.rb
+++ b/qa/qa/resource/group.rb
@@ -67,6 +67,10 @@ module QA
visibility: 'public'
}
end
+
+ def full_path
+ sandbox.path + ' / ' + path
+ end
end
end
end
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 00aa77e633c..a9de64e357a 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
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module QA
context 'Manage' do
describe 'Project transfer between groups' do
@@ -37,14 +39,14 @@ module QA
Page::File::Show.perform(&:go_to_general_settings)
- target_group_full_path = target_group.sandbox.path + ' / ' + target_group.path
+ Page::Project::Settings::Main.perform(&:expand_advanced_settings)
- Page::Project::Settings::Main.perform do |settings|
- settings.expand_advanced_settings(&:expand_select_list)
- settings.transfer_project!(project.name, target_group_full_path)
- settings.click_project
+ Page::Project::Settings::Advanced.perform do |advanced|
+ advanced.transfer_project!(project.name, target_group.full_path)
end
+ Page::Project::Settings::Main.perform(&:click_project)
+
Page::Project::Show.perform do |project|
expect(project).to have_text(target_group.path)
expect(project).to have_text(edited_readme_content)