Sha256: 6441e1a24fdf15aa9c18c90a53ea1bc5a9cec885c50ba4246141df7a13b64c28

Contents?: true

Size: 914 Bytes

Versions: 15

Compression:

Stored size: 914 Bytes

Contents

load_script! 'common/features'

add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_link('Swipe') }
add_step! (RubyApp::Element::AssertedEvent)             { |event| event.tap_link('Swipe') }

add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('Swipe left or right.') }
add_step! (RubyApp::Element::AssertedEvent)             { |event| event.swipe(:left) }

add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.assert_exists_text('You are on this page.') }

add_step! (RubyApp::Element::AssertedEvent)             { |event| event.tap_link('Back') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.tap_link('Back') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.tap_link('Back') }
add_step! (RubyApp::Elements::Mobile::Page::ShownEvent) { |event| event.refresh_browser }

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
RubyApp-0.5.44 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.43 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.42 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.41 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.40 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.39 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.38 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.37 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.36 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.35 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.34 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.33 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.32 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.31 lib/ruby_app/scripts/elements/swipe.rb
RubyApp-0.5.30 lib/ruby_app/scripts/elements/swipe.rb