Class: Capybara::Node::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/workarea/testing/custom_capybara_matchers.rb

Instance Method Summary collapse

Instance Method Details

#has_ordered_text?(*args) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
8
# 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