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:
committed by
voodoorai2000
parent
88ce8d7990
commit
5eb5f02cbe
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user