I see a lot of questions and answers about Capybara not waiting for an AJAX request to complete before testing for content, but I need to do the opposite: I want to test that a loading message is present before the AJAX request is done.
How would I check content is shown before an AJAX request is done with Capybara in RSpec?
Thanks!