Class: Capybara::Node::Base
- Inherits:
-
Object
- Object
- Capybara::Node::Base
- Defined in:
- lib/workarea/testing/custom_capybara_matchers.rb
Instance Method Summary collapse
Instance Method Details
#has_ordered_text?(*args) ⇒ 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 |