I am proceeding to integration testing and I have to populate some hidden field. The problem is this seem not to be taken into account
it "submits project form" do
page.all("#project_description", :visible => false).set(@project.description)
click_button "submit"
expect(page).to have_content @project.description
end
the problem is that I get this error message when launching the task Description can't be blank
. I am sure the the hidden field
is found, but the filling is not done. How can I fix it ? (I set Capybara.ignore_hidden_elements
to false
)