Update widget cards translatable fields

This commit is contained in:
Javi Martín
2018-10-11 00:57:26 +02:00
committed by decabeza
parent e400cb8eae
commit 981b13ac9b
5 changed files with 30 additions and 23 deletions

View File

@@ -16,10 +16,10 @@ feature 'Cards' do
visit admin_homepage_path
click_link "Create card"
fill_in "widget_card_label_en", with: "Card label"
fill_in "widget_card_title_en", with: "Card text"
fill_in "widget_card_description_en", with: "Card description"
fill_in "widget_card_link_text_en", with: "Link text"
fill_in "Label (optional)", with: "Card label"
fill_in "Title", with: "Card text"
fill_in "Description", with: "Card description"
fill_in "Link text", with: "Link text"
fill_in "widget_card_link_url", with: "consul.dev"
attach_image_to_card
click_button "Create card"
@@ -64,10 +64,10 @@ feature 'Cards' do
click_link "Edit"
end
fill_in "widget_card_label_en", with: "Card label updated"
fill_in "widget_card_title_en", with: "Card text updated"
fill_in "widget_card_description_en", with: "Card description updated"
fill_in "widget_card_link_text_en", with: "Link text updated"
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"
fill_in "widget_card_link_url", with: "consul.dev updated"
click_button "Save card"
@@ -104,10 +104,10 @@ feature 'Cards' do
visit admin_homepage_path
click_link "Create header"
fill_in "widget_card_label_en", with: "Header label"
fill_in "widget_card_title_en", with: "Header text"
fill_in "widget_card_description_en", with: "Header description"
fill_in "widget_card_link_text_en", with: "Link text"
fill_in "Label (optional)", with: "Header label"
fill_in "Title", with: "Header text"
fill_in "Description", with: "Header description"
fill_in "Link text", with: "Link text"
fill_in "widget_card_link_url", with: "consul.dev"
click_button "Create header"