Fix budget investment specs

After adding investment translatable fields to forms, they will be
generated with nested translations names and ids so we can no longer
use standard id locator.

Using input label text to fill in fields works with both types of forms.
This commit is contained in:
Senén Rodero Rodríguez
2019-01-25 11:50:57 +01:00
committed by voodoorai2000
parent 88ce8d7990
commit 5eb5f02cbe
8 changed files with 34 additions and 34 deletions

View File

@@ -1102,8 +1102,8 @@ describe "Admin budget investments" do
visit admin_budget_budget_investment_path(budget_investment.budget, budget_investment)
click_link "Edit"
fill_in "budget_investment_title", with: "Potatoes"
fill_in "budget_investment_description", with: "Carrots"
fill_in "Title", with: "Potatoes"
fill_in "Description", with: "Carrots"
select "#{budget_investment.group.name}: Barbate", from: "budget_investment[heading_id]"
uncheck "budget_investment_incompatible"
check "budget_investment_selected"
@@ -1365,7 +1365,7 @@ describe "Admin budget investments" do
visit admin_budget_budget_investment_path(budget_investment.budget, budget_investment)
click_link "Edit"
fill_in "budget_investment_title", with: ""
fill_in "Title", with: ""
click_button "Update"