diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue
index 9d5a705d..d60d9e5d 100644
--- a/app/javascript/template_builder/builder.vue
+++ b/app/javascript/template_builder/builder.vue
@@ -57,99 +57,20 @@
:class="{ sticky: withStickySubmitters || isBreakpointLg }"
:style="{ backgroundColor }"
>
-
-
-
+
diff --git a/app/javascript/template_builder/i18n.js b/app/javascript/template_builder/i18n.js
index 1903137f..216657e0 100644
--- a/app/javascript/template_builder/i18n.js
+++ b/app/javascript/template_builder/i18n.js
@@ -156,7 +156,7 @@ const en = {
enter_pdf_password: 'Enter PDF password',
wrong_password: 'Wrong password',
currency: 'Currency',
- save_and_preview: 'Save and Preview',
+ save_and_preview: 'Preview',
preferences: 'Preferences',
available_in_pro: 'Available in Pro',
some_fields_are_missing_in_the_formula: 'Some fields are missing in the formula.',
diff --git a/spec/system/template_builder_spec.rb b/spec/system/template_builder_spec.rb
index 2f4b9456..ee7166dd 100644
--- a/spec/system/template_builder_spec.rb
+++ b/spec/system/template_builder_spec.rb
@@ -29,4 +29,12 @@ RSpec.describe 'Template Builder' do
expect(page).to have_content('sample-image')
end
end
+
+ context 'when clicking the save and preview button' do
+ it 'redirects to the template form page' do
+ visit edit_template_path(template)
+ click_on 'Save and Preview'
+ expect(page).to have_current_path("/templates/#{template.id}/form")
+ end
+ end
end