- ))}
-
+ {templates[selectedCategory].map((template, index) => (
+
+ ))}
-
);
};
diff --git a/assets/js/src/form_editor/templates/store/types.ts b/assets/js/src/form_editor/templates/store/types.ts
index 17675c3632..d53f5a06e1 100644
--- a/assets/js/src/form_editor/templates/store/types.ts
+++ b/assets/js/src/form_editor/templates/store/types.ts
@@ -1,6 +1,7 @@
export type TemplateType = {
id: string
name: string
+ thumbnail: string,
};
export type TemplateData = {
diff --git a/tests/acceptance/CreateFormUsingTemplateCest.php b/tests/acceptance/CreateFormUsingTemplateCest.php
index 28db58f328..d120cbd8d5 100644
--- a/tests/acceptance/CreateFormUsingTemplateCest.php
+++ b/tests/acceptance/CreateFormUsingTemplateCest.php
@@ -23,29 +23,9 @@ class CreateFormUsingTemplateCest {
$i->click('[data-automation-id="create_new_form"]');
$i->waitForElement('[data-automation-id="template_selection_list"]');
- $i->click('[data-automation-id="template_index_0"]');
+ $i->click('[data-automation-id="select_template_template_1_popup"]');
- $i->waitForElement('[data-automation-id="form_title_input"]');
- $i->selectOptionInSelect2($segmentName);
- $i->click('[data-automation-id="form_save_button"]');
- $i->waitForText('Form saved', 10, '.automation-dismissible-notices');
- }
-
- public function createFormUsingBlankTemplate(\AcceptanceTester $i) {
- $segmentFactory = new Segment();
- $segmentName = 'Fancy List';
- $segmentFactory->withName($segmentName)->create();
-
- $i->wantTo('Create a new form');
- $i->login();
- $i->amOnMailPoetPage('Forms');
- $i->click('[data-automation-id="create_new_form"]');
-
- $i->waitForElement('[data-automation-id="template_selection_list"]');
- $i->waitForElement('[data-automation-id="blank_template"]');
- $i->click('[data-automation-id="blank_template"]');
-
- $i->waitForElement('[data-automation-id="form_title_input"]');
+ $i->waitForElement('[data-automation-id="form_title_input"]', 20);
$i->selectOptionInSelect2($segmentName);
$i->click('[data-automation-id="form_save_button"]');
$i->waitForText('Form saved', 10, '.automation-dismissible-notices');
diff --git a/views/form/template_selection.html b/views/form/template_selection.html
index 1af50d6ff1..1f94145da7 100644
--- a/views/form/template_selection.html
+++ b/views/form/template_selection.html
@@ -37,6 +37,7 @@
'popupCategory': _x('Pop up', 'This is a text on a widget that leads to settings for form placement - form type is pop up, it will be displayed on page in a small modal window'),
'belowPagesCategory': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'),
'othersCategory': _x('Others (widget)', 'Placement of the form using theme widget'),
+ 'select': _x('Select', 'Verb'),
}) %>
<% endblock %>