Sha256: 45096f8015fa0303f243fc467326f28a286b7ada6f851b8f2c7c1e8be2e51b13

Contents?: true

Size: 1.47 KB

Versions: 15

Compression:

Stored size: 1.47 KB

Contents

load_script! 'common/features'

add_step! (RubyApp::Element::Event)                     { |event| event.assert_exists_link('Calendars') } 
add_step! (RubyApp::Element::AssertedEvent)             { |event| event.click_link('Calendars') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Month') } 
add_step! (RubyApp::Element::AssertedEvent)             { |event| event.click_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.click_link(Date.today.day == 15 ? 14 : 15) }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text("You selected 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.click_link('OK') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text(Date.today.day == 15 ? 14 : 15) } 
add_step! (RubyApp::Element::AssertedEvent)             { |event| event.click_link('Back') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') } 
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.click_link('Back') } 
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.execute {} } 

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.15 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.14 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.13 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.12 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.11 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.10 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.9 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.5 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.4 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.3 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.2 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.1 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.7.0 lib/ruby_app/scripts/features/calendars/month.rb
RubyApp-0.6.71 lib/ruby_app/scripts/features/calendars/month.rb