Commit 35660a22 authored by Sanad Liaquat's avatar Sanad Liaquat

Add qa class and some refactor

parent b6e50a4e
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment