lib/kelp/visibility.rb
# Verify that all items do not appear in the same table row. Passes if there
# is no `tr` containing all the given `texts`, and fails if there exists
# such a `tr`.
#
# @example
#   should_not_see_in_same_row ["Pinky", "Maurice LaMarche"]
#   should_not_see_in_same_row ["Brain", "Rob Paulsen"]
#
# @param [Array] texts
#   Array of Strings that should not appear in the same row
# @param [Hash] scope
#   Scoping keywords as understood by {#in_scope}
#
# @raise [Kelp::Unexpected]
#   If a row is found containing all strings in `texts`
#
Verify that all items do not appear in the same table row.
Verify that all items do not appear in the same table row .
def should_not_see_in_same_row(texts, scope={})
      in_scope(scope) do
        if page.has_xpath?(xpath_row_containing(texts))
          raise Kelp::Unexpected, "Did not expect, but did see: #{texts.inspect} in the same row"
        end
      end
    end
def should_not_see_in_same_row ( texts , scope = { } ) in_scope ( scope ) do if page . has_xpath? ( xpath_row_containing ( texts ) ) raise Kelp :: Unexpected , "Did not expect, but did see: #{texts.inspect} in the same row" end end end
Verify that all items do not appear in the same table row.
Verify that all items do not appear in the same table row .
[Kelp::Unexpected] If a row is found containing all strings in `texts`
[ Kelp :: Unexpected ] If a row is found containing all strings in ` texts `
texts
<not_specific>
scope
<not_specific>
<not_specific>
scope Scoping keywords as understood by {#in_scope}
scope Scoping keywords as understood by { #in_scope }
example
should_not_see_in_same_row ["Pinky", "Maurice LaMarche"] should_not_see_in_same_row ["Brain", "Rob Paulsen"]
should_not_see_in_same_row [ " Pinky " " Maurice LaMarche " ] should_not_see_in_same_row [ " Brain " " Rob Paulsen " ]