Fix ambiguous field in test

This commit is contained in:
Javi Martín
2018-10-11 12:05:10 +02:00
committed by decabeza
parent 28ed6aa136
commit 7b9b65043f
2 changed files with 8 additions and 5 deletions

View File

@@ -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 }
}

View File

@@ -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"