Sha256: c976dd2761c94bcc1e6e10705a6444fea295a009a67418563b4584e5affebecd

Contents?: true

Size: 1.11 KB

Versions: 14

Compression:

Stored size: 1.11 KB

Contents

load_script! 'common/features'

add_step! RubyApp::Elements::Mobile::Page::ShownEvent 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.refresh_browser
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
RubyApp-0.5.58 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.57 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.56 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.55 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.54 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.53 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.52 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.51 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.50 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.49 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.48 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.47 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.46 lib/ruby_app/scripts/elements/calendars/month.rb
RubyApp-0.5.45 lib/ruby_app/scripts/elements/calendars/month.rb