Sha256: 5d8f80d512f4525f69bba5cbf19ac8257de42d2afa0c2185359fe1d486a4c4d3

Contents?: true

Size: 1.09 KB

Versions: 86

Compression:

Stored size: 1.09 KB

Contents

load_script! 'common/features'

add_step! RubyApp::Element::Event do |event|
  event.assert_exists_link('Calendars')
  event.click_link('Calendars')
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.assert_exists_link('Month')
  event.click_link('Month')
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.assert_exists_link(Date.today.day == 15 ? 14 : 15)
  event.click_link(Date.today.day == 15 ? 14 : 15)
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.assert_exists_text("You selected day #{Date.today.day == 15 ? 14 : 15}.")
  event.assert_exists_link('OK')
  event.click_link('OK')
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.assert_exists_text(Date.today.day == 15 ? 14 : 15)
  event.click_link('Back')
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.click_link('Back')
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.click_link('Back')
end

add_step! RubyApp::Elements::Mobile::Page::ShownEvent do |event|
  event.execute {}
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
RubyApp-0.6.70 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.69 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.68 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.67 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.66 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.65 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.64 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.63 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.62 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.61 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.60 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.59 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.58 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.57 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.53 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.52 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.51 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.50 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.49 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.6.48 lib/ruby_app/scripts/elements/calendars/month.rb