def expect_views(*queries)
      if queries.nil? || queries.any?(&:nil?)
        raise ArgumentError, 'Query cannot be nil'
      end

      unless views_exist?(*queries)
        raise ViewNotFoundError,
              "Not all queries #{Wait.parse_query_list(queries)} matched a view"
      end

      true
    end
def expect_views(*queries)
      if queries.nil? || queries.any?(&:nil?)
        raise ArgumentError, 'Query cannot be nil'
      end

      unless views_exist?(*queries)
        raise ViewNotFoundError,
              "Not all queries #{Wait.parse_query_list(queries)} matched a view"
      end

      true
    end
Expect `queries` to each match at least one view. Raise an exception if
 they do not.

 @param [String, Hash, Calabash::Query] queries List of queries or a
  query.
 @raise [ArgumentError] If given an invalid list of queries
 @raise [ViewNotFoundError] If `queries` do not all match at least one
   view.