Fix ambiguous field in test
This commit is contained in:
@@ -45,7 +45,7 @@ module TranslatableFormHelper
|
|||||||
|
|
||||||
def translations_options(resource, locale)
|
def translations_options(resource, locale)
|
||||||
{
|
{
|
||||||
class: " js-globalize-attribute",
|
class: "translatable_fields js-globalize-attribute",
|
||||||
style: @template.display_translation_style(resource.globalized_model, locale),
|
style: @template.display_translation_style(resource.globalized_model, locale),
|
||||||
data: { locale: locale }
|
data: { locale: locale }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,10 +64,13 @@ feature 'Cards' do
|
|||||||
click_link "Edit"
|
click_link "Edit"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
within(".translatable_fields") do
|
||||||
fill_in "Label (optional)", with: "Card label updated"
|
fill_in "Label (optional)", with: "Card label updated"
|
||||||
fill_in "Title", with: "Card text updated"
|
fill_in "Title", with: "Card text updated"
|
||||||
fill_in "Description", with: "Card description updated"
|
fill_in "Description", with: "Card description updated"
|
||||||
fill_in "Link text", with: "Link text updated"
|
fill_in "Link text", with: "Link text updated"
|
||||||
|
end
|
||||||
|
|
||||||
fill_in "widget_card_link_url", with: "consul.dev updated"
|
fill_in "widget_card_link_url", with: "consul.dev updated"
|
||||||
click_button "Save card"
|
click_button "Save card"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user