2018-04-18 20:45:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-01-30 00:31:35 +00:00
|
|
|
module Capybara
|
|
|
|
module Queries
|
|
|
|
class MatchQuery < Capybara::Queries::SelectorQuery
|
|
|
|
def visible
|
2018-01-13 21:06:03 +00:00
|
|
|
options.key?(:visible) ? super : :all
|
2016-01-30 00:31:35 +00:00
|
|
|
end
|
|
|
|
|
2018-01-09 22:05:50 +00:00
|
|
|
private
|
2016-01-30 00:31:35 +00:00
|
|
|
|
|
|
|
def valid_keys
|
2016-09-23 16:56:07 +00:00
|
|
|
super - COUNT_KEYS
|
2016-01-30 00:31:35 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2018-01-09 22:05:50 +00:00
|
|
|
end
|