Okay after a short chat in #RubyOnRails on freenode it became clear to me that this isn't as easy possible as it sounds first. The problem is that Capybara can't know if the .foo
s that are already inserted into the page are "all" of them. Thats why .all
has no (or doesn't need) support for waiting like .find
has.
The solution would be to manually wait for an appropriate amount of time and then just use .all
.