diff options
-rw-r--r-- | app/views/layouts/nav/sidebar/_admin.html.haml | 2 | ||||
-rw-r--r-- | qa/qa/page/project/new.rb | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/views/layouts/nav/sidebar/_admin.html.haml b/app/views/layouts/nav/sidebar/_admin.html.haml index 2fdd65f639b..bb2d206ba91 100644 --- a/app/views/layouts/nav/sidebar/_admin.html.haml +++ b/app/views/layouts/nav/sidebar/_admin.html.haml @@ -220,7 +220,7 @@ = _('Repository') - if template_exists?('admin/application_settings/templates') = nav_link(path: 'application_settings#templates') do - = link_to templates_admin_application_settings_path, title: _('Templates') do + = link_to templates_admin_application_settings_path, title: _('Templates'), class: 'qa-admin-settings-template-item' do %span = _('Templates') = nav_link(path: 'application_settings#ci_cd') do diff --git a/qa/qa/page/project/new.rb b/qa/qa/page/project/new.rb index eabeae1acc4..552b2293115 100644 --- a/qa/qa/page/project/new.rb +++ b/qa/qa/page/project/new.rb @@ -24,11 +24,14 @@ module QA end def choose_test_namespace + choose_namespace(Runtime::Namespace.path) + end + + def choose_namespace(namespace) retry_on_exception do click_body click_element :project_namespace_select - - search_and_select(Runtime::Namespace.path) + search_and_select(namespace) end end |