From 3e6e09c458ea67f156e43d2829bdce3138c5cf03 Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Thu, 11 Jan 2018 14:14:16 +0100 Subject: Use full QA sandbox group path when creating a project --- qa/qa/page/project/new.rb | 2 +- qa/qa/runtime/namespace.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'qa') diff --git a/qa/qa/page/project/new.rb b/qa/qa/page/project/new.rb index 1f23de29642..19428ede79e 100644 --- a/qa/qa/page/project/new.rb +++ b/qa/qa/page/project/new.rb @@ -13,7 +13,7 @@ module QA def choose_test_namespace click_element :project_namespace_select - first('li', text: Runtime::Namespace.name).click + first('li', text: Runtime::Namespace.path).click end def choose_name(name) diff --git a/qa/qa/runtime/namespace.rb b/qa/qa/runtime/namespace.rb index b00e925986b..a72c2d21898 100644 --- a/qa/qa/runtime/namespace.rb +++ b/qa/qa/runtime/namespace.rb @@ -11,6 +11,10 @@ module QA 'qa-test-' + time.strftime('%d-%m-%Y-%H-%M-%S') end + def path + "#{sandbox_name}/#{name}" + end + def sandbox_name 'gitlab-qa-sandbox' end -- cgit v1.2.1