Report question

Question: How can I write javascript tests that don't timeout or fail randomly with rspec, capybara, and poltergeist?