diff --git a/app/helpers/translatable_form_helper.rb b/app/helpers/translatable_form_helper.rb index e07b71435..977c73628 100644 --- a/app/helpers/translatable_form_helper.rb +++ b/app/helpers/translatable_form_helper.rb @@ -45,7 +45,7 @@ module TranslatableFormHelper def translations_options(resource, locale) { - class: " js-globalize-attribute", + class: "translatable_fields js-globalize-attribute", style: @template.display_translation_style(resource.globalized_model, locale), data: { locale: locale } } diff --git a/spec/features/admin/widgets/cards_spec.rb b/spec/features/admin/widgets/cards_spec.rb index b8b29887f..3b67caab1 100644 --- a/spec/features/admin/widgets/cards_spec.rb +++ b/spec/features/admin/widgets/cards_spec.rb @@ -64,10 +64,13 @@ feature 'Cards' do click_link "Edit" end - fill_in "Label (optional)", with: "Card label updated" - fill_in "Title", with: "Card text updated" - fill_in "Description", with: "Card description updated" - fill_in "Link text", with: "Link text updated" + within(".translatable_fields") do + fill_in "Label (optional)", with: "Card label updated" + fill_in "Title", with: "Card text updated" + fill_in "Description", with: "Card description updated" + fill_in "Link text", with: "Link text updated" + end + fill_in "widget_card_link_url", with: "consul.dev updated" click_button "Save card"