Sha256: 94d8b9b2c1fdb177c1ee7122d827e3bc3f1bf8def31cb7c33acca63be6acb7e3
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
require 'calabash-cucumber' module Briar module Alerts_and_Sheets def alert_exists? (alert_id) !query("alertView marked:'#{alert_id}'").empty? end def should_see_alert (alert_id) unless alert_exists? alert_id screenshot_and_raise "should see alert view marked '#{alert_id}'" end end def should_not_see_alert (alert_id) if alert_exists? alert_id screenshot_and_raise "should not see alert view marked '#{alert_id}'" end end def alert_button_exists? (button_id) query('alertView child button child label', :text).include?(button_id) end def should_see_alert_button (button_id) unless alert_button_exists? button_id screenshot_and_raise "could not find alert view with button '#{button_id}'" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
briar-0.0.6 | lib/briar/alerts_and_sheets/alert_view.rb |