diff options
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/factory/resource/project.rb | 7 | ||||
-rw-r--r-- | qa/qa/specs/features/project/deploy_key_clone_spec.rb | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/qa/qa/factory/resource/project.rb b/qa/qa/factory/resource/project.rb index 7df2dc6618c..857d8c98626 100644 --- a/qa/qa/factory/resource/project.rb +++ b/qa/qa/factory/resource/project.rb @@ -17,6 +17,13 @@ module QA Page::Project::Show.act { project_name } end + product :repository_ssh_uri do + Page::Project::Show.act do + choose_repository_clone_ssh + repository_location_uri + end + end + def fabricate! group.visit! diff --git a/qa/qa/specs/features/project/deploy_key_clone_spec.rb b/qa/qa/specs/features/project/deploy_key_clone_spec.rb index cbb383f9291..706a39a5331 100644 --- a/qa/qa/specs/features/project/deploy_key_clone_spec.rb +++ b/qa/qa/specs/features/project/deploy_key_clone_spec.rb @@ -46,10 +46,7 @@ module QA project.visit! - repository_uri = Page::Project::Show.act do - choose_repository_clone_ssh - repository_location_uri - end + repository_uri = project.repository_ssh_uri gitlab_ci = <<~YAML cat-config: |