Sha256: e2c789c6aa4b0217c7886502ff41836f6e7421fcb4a3f83eabb59f15e9b5ffaa
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
describe 'device/touch_actions' do t 'swipe_default_duration' do wait_true do text('pickers').click screen == 'Pickers' end ele_index('UIAStaticText', 2).text.must_equal 'John Appleseed - 0' picker = ele_index('UIAPicker', 1) loc = picker.location.to_h size = picker.size.to_h start_x = loc[:x] + size[:width] / 2 start_y = loc[:y] + size[:height] / 2 swipe start_x: start_x, start_y: start_y, delta_x: start_x, delta_y: - 50 ele_index('UIAStaticText', 2).text.must_equal 'Chris Armstrong - 0' end end # TODO: write tests # # move_to # long_press # press # release # tap # wait # swipe # perform # cancel
Version data entries
3 entries across 3 versions & 1 rubygems