summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWalmyr Lima e Silva Filho <walmyr@gitlab.com>2019-09-02 18:20:07 +0000
committerWalmyr Lima e Silva Filho <walmyr@gitlab.com>2019-09-02 18:20:07 +0000
commit183d9ed70873860c9cc0722ea9a2d0723d4e034e (patch)
tree7806ef87d555d175b74484093abdd88264e1d2a0
parent8373ced9e62ca0e78bb4d8fb300585a584f3642b (diff)
parentd3293e49e82183d96f637fd5683c5790ba4db236 (diff)
downloadgitlab-ce-183d9ed70873860c9cc0722ea9a2d0723d4e034e.tar.gz
Merge branch 'qa-add-built-in-project-template-test-ce' into 'master'
Backport EE changes for built-in project template test See merge request gitlab-org/gitlab-ce!32358
-rw-r--r--app/views/projects/project_templates/_built_in_templates.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/project_templates/_built_in_templates.html.haml b/app/views/projects/project_templates/_built_in_templates.html.haml
index d1c09e83fd3..a583eb39eb3 100644
--- a/app/views/projects/project_templates/_built_in_templates.html.haml
+++ b/app/views/projects/project_templates/_built_in_templates.html.haml
@@ -1,5 +1,5 @@
- Gitlab::ProjectTemplate.all.each do |template|
- .template-option.d-flex.align-items-center
+ .template-option.d-flex.align-items-center{ data: { qa_selector: 'template_option_row' } }
.logo.append-right-10.px-1
= image_tag template.logo, size: 32, class: "btn-template-icon icon-#{template.name}"
.description
@@ -13,5 +13,5 @@
= _("Preview")
%label.btn.btn-success.template-button.choose-template.append-bottom-0{ for: template.name }
%input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name, data: { track_label: "template_use", track_property: template.name, track_event: "click_button", track_value: "" } }
- %span
+ %span{ data: { qa_selector: 'use_template_button' } }
= _("Use template")