module Capybara::RSpecMatchers

def become_closed(**options)

Options Hash: (**options)
  • :wait (Numeric) -- Maximum wait time. Defaults to {Capybara.configure default_max_wait_time}
def become_closed(**options)
  Matchers::BecomeClosed.new(options)
end

def have_all_of_selectors(...)

Other tags:
    See: Capybara::Node::Matchers#assert_all_of_selectors -
def have_all_of_selectors(...)
  Matchers::HaveAllSelectors.new(...)
end

def have_ancestor(...)

Other tags:
    See: Capybara::Node::Matchers#assert_ancestor -
def have_ancestor(...)
  Matchers::HaveAncestor.new(...)
end

def have_any_of_selectors(...)

Other tags:
    See: Capybara::Node::Matchers#assert_any_of_selectors -
def have_any_of_selectors(...)
  Matchers::HaveAnySelectors.new(...)
end

def have_current_path(path, **options, &optional_filter_block)

Other tags:
    See: Capybara::SessionMatchers#assert_current_path -
def have_current_path(path, **options, &optional_filter_block)
  Matchers::HaveCurrentPath.new(path, **options, &optional_filter_block)
end

def have_none_of_selectors(...)

Other tags:
    See: Capybara::Node::Matchers#assert_none_of_selectors -
def have_none_of_selectors(...)
  Matchers::HaveNoSelectors.new(...)
end

def have_selector(...)

Other tags:
    See: Capybara::Node::Matchers#assert_selector -
def have_selector(...)
  Matchers::HaveSelector.new(...)
end

def have_sibling(...)

Other tags:
    See: Capybara::Node::Matchers#assert_sibling -
def have_sibling(...)
  Matchers::HaveSibling.new(...)
end

def have_style(styles = nil, **options)

Deprecated:
def have_style(styles = nil, **options)
  Capybara::Helpers.warn "DEPRECATED: have_style is deprecated, please use match_style : #{Capybara::Helpers.filter_backtrace(caller)}"
  match_style(styles, **options)
end

def have_text(text_or_type, *args, **options)

Other tags:
    See: Capybara::Node::Matchers#assert_text -
def have_text(text_or_type, *args, **options)
  Matchers::HaveText.new(text_or_type, *args, **options)
end

def have_title(title, **options)

def have_title(title, **options)
  Matchers::HaveTitle.new(title, **options)
end

def match_selector(...)

Other tags:
    See: Capybara::Node::Matchers#assert_matches_selector -
def match_selector(...)
  Matchers::MatchSelector.new(...)
end

def match_style(styles = nil, **options)

Other tags:
    See: Capybara::Node::Matchers#matches_style? -
def match_style(styles = nil, **options)
  styles, options = options, {} if styles.nil?
  Matchers::MatchStyle.new(styles, **options)
end