Sha256: 278dc704726849efdf1102d68836f1c00862718e2c18f13c9302ace0b2d7860d

Contents?: true

Size: 564 Bytes

Versions: 18

Compression:

Stored size: 564 Bytes

Contents

# frozen_string_literal: true

module Capybara
  module Queries
    class MatchQuery < Capybara::Queries::SelectorQuery
      def visible
        options.key?(:visible) ? super : :all
      end

    private

      def assert_valid_keys
        invalid_options = @options.keys & COUNT_KEYS
        unless invalid_options.empty?
          raise ArgumentError, "Match queries don't support quantity options. Invalid keys - #{invalid_options.join(', ')}"
        end
        super
      end

      def valid_keys
        super - COUNT_KEYS
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
tdiary-5.0.11 vendor/bundle/gems/capybara-3.6.0/lib/capybara/queries/match_query.rb
capybara-3.8.2 lib/capybara/queries/match_query.rb
capybara-3.8.1 lib/capybara/queries/match_query.rb
capybara-3.8.0 lib/capybara/queries/match_query.rb
capybara-3.7.2 lib/capybara/queries/match_query.rb
capybara-3.7.1 lib/capybara/queries/match_query.rb
capybara-3.7.0 lib/capybara/queries/match_query.rb
capybara-3.6.0 lib/capybara/queries/match_query.rb
capybara-3.5.1 lib/capybara/queries/match_query.rb
capybara-3.5.0 lib/capybara/queries/match_query.rb
capybara-3.4.2 lib/capybara/queries/match_query.rb
capybara-3.4.1 lib/capybara/queries/match_query.rb
capybara-3.4.0 lib/capybara/queries/match_query.rb
tdiary-5.0.9 vendor/bundle/gems/capybara-3.2.1/lib/capybara/queries/match_query.rb
capybara-3.3.1 lib/capybara/queries/match_query.rb
capybara-3.3.0 lib/capybara/queries/match_query.rb
capybara-3.2.1 lib/capybara/queries/match_query.rb
capybara-3.2.0 lib/capybara/queries/match_query.rb