lib/ruby_app/scripts/elements/dialogs.rb in RubyApp-0.5.38 vs lib/ruby_app/scripts/elements/dialogs.rb in RubyApp-0.5.39
- old
+ new
@@ -17,20 +17,22 @@
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Do you confirm this?') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('Yes') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('No') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('Yes') }
+add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You responded true.') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('OK') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Confirmation') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('Confirmation') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Do you confirm this?') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('No') }
+add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You responded false.') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('OK') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Confirmation') }
@@ -45,19 +47,21 @@
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('Month') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link(Date.today.day == 15 ? 14 : 15) }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link(Date.today.day == 15 ? 14 : 15) }
+add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text("You responded day #{Date.today.day == 15 ? 14 : 15}.") }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('OK') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('Month') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Today') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('Today') }
+add_step! (RubyApp::Elements::Mobile::Page::ShownEvent)
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text("You responded day #{Date.today.day}.") }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.assert_exists_link('OK') }
add_step! (RubyApp::Element::AssertedEvent) { |event| event.tap_link('OK') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') }