Sha256: 0850ac7af4ff10cce8de3d2c8291daab5b8a6840e71e1f3296fc98a0ea5ec119

Contents?: true

Size: 665 Bytes

Versions: 7

Compression:

Stored size: 665 Bytes

Contents


#noinspection RubyUnusedLocalVariable
Then /^I scroll (left|right|up|down) until I see "([^\"]*)" limit (\d+)$/ do |dir, marker, limit|
  pending "deprecated 0.0.6 - use Then I scroll #{dir} until I see \"#{marker}\""
end

Then /^I scroll (left|right|up|down) until I see "([^\"]*)"$/ do |dir, marker|
  wait_poll({:until_exists => "view marked:'#{marker}'",
             :timeout => 2}) do
    scroll('scrollView index:0', dir)
  end
  unless exists? marker
    screenshot_and_raise "i scrolled '#{dir}' but did not see #{marker}"
  end
end


Then /^I scroll "([^"]*)" (left|right|up|down)"$/ do |name, dir|
  swipe(dir, {:query => "view marked:'#{name}'"})
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
briar-0.1.2 features/step_definitions/scroll_view_steps.rb
briar-0.1.1 features/step_definitions/scroll_view_steps.rb
briar-0.1.0 features/step_definitions/scroll_view_steps.rb
briar-0.0.9 features/step_definitions/scroll_view_steps.rb
briar-0.0.8 features/step_definitions/scroll_view_steps.rb
briar-0.0.7 features/step_definitions/scroll_view_steps.rb
briar-0.0.6 features/step_definitions/scroll_view_steps.rb