Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (15 sloc) 0.445 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
activity Java::org.ruboto.test_app.ImageButtonActivity

setup do |activity|
  start = Time.now
  loop do
    @text_view = activity.findViewById(42)
    break if @text_view || (Time.now - start > 60)
    sleep 1
  end
  assert @text_view
end

test('button changes text') do |activity|
  assert_equal "What hath Matz wrought?", @text_view.text
  activity.findViewById(43).performClick
  assert_equal "What hath Matz wrought!", @text_view.text
end
Something went wrong with that request. Please try again.