I was writing my steps for my tests with Cucumber and they are not finding it the ids , labels or names of the forms. I've looked at various tutorials on the internet and my problem is really strange, because in all cases the problem is always the reference, and in this case, mine is correct.
Steps (The first step works correctly)
Dado(/^que eu esteja na página de criação de eventos$/) do
visit "/events/new"
end
Quando(/^eu prencho os dados do evento corretamente$/) do
fill_in "event_name", :with => "Nome do Evento"
end
Part of the form that contains input
<div class="field form-group">
<%= f.label :Evento %><br>
<%= f.text_field :name, :class => "form-control", :required => true %>
</div>
<div class="field form-group">
<%= f.label :Data_Evento %><br>
<%= f.date_select :date_event, :class => "form-control", :required => true %>
</div>
<div class="field form-group">
<%= f.label :Destacar_Evento? %><br>
<%= f.check_box :detach, {}, "1", "2" %>
</div>