Sha256: 4208a30d0cc17f85dd59728f3f9d7ca766b9ca49f2a750173ae4df3b4f53d1f8

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

require "calabash-cucumber"

module Briar
  module TextView
    def text_view_exists? (name)
      !query("textView marked:'#{name}'").empty?
    end

    def should_see_text_view (name)
      unless text_view_exists? name
        screenshot_and_raise "i do not see text view with id #{name}"
      end
    end

    def should_not_see_text_view (name)
      if text_view_exists? name
        screenshot_and_raise "i should not see text view with name #{name}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
briar-0.0.8 lib/briar/text_view.rb
briar-0.0.7 lib/briar/text_view.rb
briar-0.0.6 lib/briar/text_view.rb
briar-0.0.5 lib/briar/text_view.rb
briar-0.0.4 lib/briar/text_view.rb