class Capybara::Node::Base

Public Instance Methods

has_ordered_text?(*args) click to toggle source
# File lib/workarea/testing/custom_capybara_matchers.rb, line 4
def has_ordered_text?(*args)
  assert_text(:visible, /#{args.join('.*')}/m)
rescue Capybara::ExpectationNotMet
  raise Capybara::ExpectationNotMet, "Did not find text in the order #{args.join(', ')}"
end