title: I cannot expand an accordeon section with rspec/capybara
body: <p>I have been struggling for a while now but can't find a solution myself or a good tip using google.</p>
  
  <p>This is my accordeon code</p>
  
  <pre><code>&lt;div class="panel-group" id="accordion" &gt;
    &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-heading"&gt;
        &lt;h4 class="panel-title"&gt;
          &lt;a href="collapse1" data-toggle="collapse" data-parent="#accordion" aria-expanded="true" aria-controls="collapse1" id="OT"&gt;
            Oude Testament
          &lt;/a&gt;
        &lt;/h4&gt;
      &lt;/div&gt;
  and so on for the underlying text and the second panel
  </code></pre>
  
  <p>I have tried to open it using the following code in rspec/capybara:</p>
  
  <pre><code>x = page.find_by_id('OT')
  click_on(x)
  </code></pre>
  
  <p>Or with</p>
  
  <pre><code>x = page.find_link('Oude Testament')
  click_on(x)
  </code></pre>
  
  <p>Or with</p>
  
  <pre><code>x = find_link("a[href$='collapse1']")
  </code></pre>
  
  <p>When I debug, I see that x gets assigned, so that look good.
  But I never see the accordeon opening (although it works ok in a browser).</p>
  
  <p>Any tips?</p>