summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanad Liaquat <sliaquat@gitlab.com>2019-03-05 12:41:59 +0500
committerSanad Liaquat <sliaquat@gitlab.com>2019-03-07 09:49:07 +0500
commit35660a222eba577441b13015170df589b524d37b (patch)
tree108bf6e88f3a128b6f18e6f5a6f4abbccd39a462
parentb6e50a4e021fe55518e826721ba723b4732a7300 (diff)
downloadgitlab-ce-35660a222eba577441b13015170df589b524d37b.tar.gz
Add qa class and some refactor
-rw-r--r--app/views/layouts/nav/sidebar/_admin.html.haml2
-rw-r--r--qa/qa/page/project/new.rb7
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