This is only checking that the dom element exists.  Order isn't important.  Capybara will wait for dom changes when doing matchers like have_css and have_content so we are using that here to "wait" for the elements to exist on the page before continuing through the rest of the spec.