summaryrefslogtreecommitdiff
path: root/qa/qa/page/project/new.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/page/project/new.rb')
-rw-r--r--qa/qa/page/project/new.rb23
1 files changed, 16 insertions, 7 deletions
diff --git a/qa/qa/page/project/new.rb b/qa/qa/page/project/new.rb
index d1033dbfca9..b14afa90442 100644
--- a/qa/qa/page/project/new.rb
+++ b/qa/qa/page/project/new.rb
@@ -4,13 +4,9 @@ module QA
module Page
module Project
class New < Page::Base
- include Page::Component::Select2
include Page::Component::Project::Templates
-
- view 'app/views/projects/new.html.haml' do
- element :project_create_from_template_tab
- element :import_project_tab, "Import project" # rubocop:disable QA/ElementWithPattern
- end
+ include Page::Component::Select2
+ include Page::Component::VisibilitySetting
view 'app/views/projects/_new_project_fields.html.haml' do
element :initialize_with_readme_checkbox
@@ -28,6 +24,19 @@ module QA
element :template_option_row
end
+ view 'app/assets/javascripts/vue_shared/new_namespace/components/welcome.vue' do
+ element :blank_project_link, ':data-qa-selector="`${panel.name}_link`"' # rubocop:disable QA/ElementWithPattern
+ element :create_from_template_link, ':data-qa-selector="`${panel.name}_link`"' # rubocop:disable QA/ElementWithPattern
+ end
+
+ def click_blank_project_link
+ click_element :blank_project_link
+ end
+
+ def click_create_from_template_link
+ click_element :create_from_template_link
+ end
+
def choose_test_namespace
choose_namespace(Runtime::Namespace.path)
end
@@ -75,4 +84,4 @@ module QA
end
end
-QA::Page::Project::New.prepend_if_ee('QA::EE::Page::Project::New')
+QA::Page::Project::New.prepend_mod_with('Page::Project::New', namespace: QA)