title: Testing rspec and capybara with dynamic dom
body: <p>I am try to write feature test with <code>rpsec</code>, <code>capybara</code>, I have a form with input like image, when I add text on input then click <code>Add</code> button, I will use javascript to append dynamic dom <code>test label</code>. I try to write feature test but when I run this test</p>
  <pre><code>    fill_in 'message_setting_message_settings_labels_text', with: 'test label'
      find('span', text: 'Add').click
      expect(page).to have_content('test label')
  </code></pre>
  <p>The page can not find text <code>test label</code>. It seem capybara not execute javascript action right ?. Anyone test like this can help me ?
  <a href="https://i.stack.imgur.com/fJ4wO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fJ4wO.png" alt="enter image description here" /></a></p>