lib/briar/email.rb in briar-0.1.1 vs lib/briar/email.rb in briar-0.1.2
- old
+ new
@@ -119,17 +119,23 @@
else
pending 'you will need to create a backdoor method to check if the device can send an email'
end
end
- def delete_draft_and_wait_for (view_id)
+ def delete_draft_and_wait_for (view_id, opts={})
+
+
if email_not_testable?
warn_about_no_ios5_email_view
return
end
+ default_opts = {:timeout => BRIAR_WAIT_TIMEOUT,
+ :email_view_mark => 'compose email'}
+ opts = default_opts.merge(opts)
+
# does a wait for iOS > 5 + uia available
- should_see_mail_view
+ should_see_mail_view opts
device = device()
if device.ios5?
touch_navbar_item_and_wait_for_view 'Cancel', 'Delete Draft'