Sha256: dc567d9b7e182353947b1f064575d7eb46cc2b6914dcefdc3cc61af7f19463e8
Contents?: true
Size: 825 Bytes
Versions: 6
Compression:
Stored size: 825 Bytes
Contents
describe 'android/element/alert' do def open_alert # trigger the alert wait { button('OK Cancel dialog with a long message').click } end t 'alert_click' do # nav to alert activity wait { find('app').click } wait { find('alert').click } # test wait { open_alert } wait { alert_click('Something') } end t 'alert_accept' do wait { open_alert } wait { alert_accept } end t 'alert_accept_text' do wait { open_alert } wait { alert_accept_text.must_equal 'OK' } wait { alert_accept } end t 'alert_dismiss' do wait { open_alert } wait { alert_dismiss } end t 'alert_dismiss_text' do wait { open_alert } wait { alert_dismiss_text.must_equal 'Cancel' } wait { alert_dismiss } # nav to start activity 2.times { back } end end
Version data entries
6 entries across 6 versions & 1 rubygems