title: How to fill_in datepicker using Capybara, Rails, MiniTest spec
body: <p>I have a form_tag that generates the following HTML:</p>
  
  <pre><code>&lt;form accept-charset="UTF-8" action="http://www.example.com/product_page" id="dates_form" method="get"&gt;&lt;div style="margin:0;padding:0;display:inline"&gt;&lt;input name="utf8" type="hidden" value="&amp;#x2713;" /&gt;&lt;/div&gt;
    Min date: &lt;input id="datepicker_mini" name="datepicker_mini" type="text" /&gt;
    Max date: &lt;input id="datepicker_maxi" name="datepicker_maxi" type="text" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The above is ALL of the generated HTML. I have removed any partials and layouts to try and make debugging this issue as easy as possible.</p>
  
  <p>The datepicker fields call on jquery UI datepicker.</p>
  
  <p>I would like to avoid javascript for my test and simply fill in the date fields with text dates. I have tried <code>fill_in "datepicker_mini", :with =&gt; "01/01/2010"</code> but whilst it does not cause the test to fail it also does not fill in the field when I use <code>save_and_open_page</code> to test.</p>
  
  <p><strong>Update: TEST CODE</strong></p>
  
  <pre><code>it "runs report" do
    login_test_user
    within("#dates_form") do
      fill_in "datepicker_mini", :with =&gt; "01/01/2010"
      fill_in "datepicker_maxi", :with =&gt; "01/01/2020"
    end
    save_and_open_page
  end
  </code></pre>
  
  <p>Any help would be greatly appreciated. </p>
  
  <p>Thanks.</p>