Sha256: 44a418f374f8cc33324fa0bb5e23869aa724337a8a5f7e2c7545a4a5f50fcd5e

Contents?: true

Size: 922 Bytes

Versions: 14

Compression:

Stored size: 922 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.click_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.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.refresh_browser }

Version data entries

14 entries across 14 versions & 1 rubygems

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